/* ========================================
   江军商业店铺买卖网站 - 主样式文件
   ======================================== */

:root {
  --primary: #1a56db;
  --primary-dark: #1648c7;
  --primary-light: #e0ebff;
  --accent: #d4a00a;
  --accent-light: #fff8e6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

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

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

/* ========================================
   顶部栏 TopBar
   ======================================== */
.topbar {
  background: var(--primary);
  color: white;
  padding: 10px 0;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.topbar-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
}

.topbar-contact a:hover {
  color: #ffd052;
}

.topbar-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-btns {
  display: flex;
  gap: 10px;
}

.topbar-btns a {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.topbar-btns .btn-buyer {
  background: white;
  color: var(--primary);
}

.topbar-btns .btn-buyer:hover {
  background: var(--accent);
  color: white;
}

.topbar-btns .btn-seller {
  background: var(--accent);
  color: white;
}

.topbar-btns .btn-seller:hover {
  background: #c49009;
}

/* ========================================
   导航栏 Navigation
   ======================================== */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-text p {
  font-size: 12px;
  color: var(--text-secondary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu a {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

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

.nav-call {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .topbar-contact span:not(:first-child) {
    display: none;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #133aab 100%);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h2 span {
  color: #ffd052;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-btns .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.hero-btns .btn-white {
  background: white;
  color: var(--primary);
}

.hero-btns .btn-white:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.hero-btns .btn-accent {
  background: var(--accent);
  color: white;
}

.hero-btns .btn-accent:hover {
  background: #c49009;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stats div {
  text-align: left;
}

.hero-stats strong {
  display: block;
  font-size: 36px;
  font-weight: 700;
}

.hero-stats span {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }
}

/* ========================================
   Agent Card 经纪人卡片
   ======================================== */
.agent-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.agent-card-header {
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #133aab 100%);
}

.agent-card-body {
  padding: 0 24px 24px;
  text-align: center;
}

.agent-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  margin: -48px auto 16px;
  background: #f3f4f6;
  box-shadow: var(--shadow);
}

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

.agent-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.agent-card .title {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.agent-card .subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.agent-tags span {
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.agent-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.agent-contact a,
.agent-contact div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.agent-contact a:hover {
  background: var(--primary-light);
}

.agent-contact .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.agent-contact .icon-phone {
  background: #dbeafe;
  color: #2563eb;
}

.agent-contact .icon-wechat {
  background: #dcfce7;
  color: #16a34a;
}

.agent-contact .icon-email {
  background: #fef3c7;
  color: #d97706;
}

.agent-contact .icon-gongzhonghao {
  background: #fce7f3;
  color: #db2777;
}

.agent-contact .info {
  text-align: left;
}

.agent-contact .info small {
  display: block;
  font-size: 12px;
  color: var(--text-light);
}

.agent-contact .info span {
  font-weight: 500;
  color: var(--text-primary);
}

.agent-card .btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.agent-card .btn-call:hover {
  background: var(--primary-dark);
}

/* Compact Agent Card */
.agent-card-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.agent-card-compact .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}

.agent-card-compact .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-card-compact h4 {
  font-weight: 700;
}

.agent-card-compact p {
  font-size: 14px;
  color: var(--text-secondary);
}

.agent-card-compact a {
  color: var(--primary);
  font-weight: 600;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 60px 0;
}

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

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark {
  background: var(--bg-dark);
  color: white;
}

.section-gray {
  background: var(--bg-secondary);
}

/* ========================================
   Trust Bar 信任条
   ======================================== */
.trust-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  list-style: none;
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.trust-bar li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* ========================================
   Industry Grid 行业入口
   ======================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.industry-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.industry-item .icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}

.industry-item span {
  font-weight: 500;
  color: var(--text-primary);
}

.icon-restaurant { background: #ffedd5; color: #ea580c; }
.icon-laundry { background: #dbeafe; color: #2563eb; }
.icon-nail { background: #fce7f3; color: #db2777; }
.icon-massage { background: #dcfce7; color: #16a34a; }
.icon-other { background: #f3e8ff; color: #9333ea; }
.icon-search { background: var(--primary-light); color: var(--primary); }

@media (max-width: 768px) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Listing Card 店铺卡片
   ======================================== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.listing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.2s;
}

.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.listing-card-image {
  position: relative;
  height: 200px;
  background: #f3f4f6;
  overflow: hidden;
}

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

.listing-card:hover .listing-card-image img {
  transform: scale(1.05);
}

.listing-card-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.listing-card-tags .tag {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
}

.tag-category {
  background: #ffedd5;
  color: #ea580c;
}

.tag-status {
  background: #dcfce7;
  color: #16a34a;
}

.tag-status.negotiating {
  background: #fef3c7;
  color: #d97706;
}

.listing-card-date {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.9);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.listing-card-body {
  padding: 20px;
}

.listing-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.listing-card-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.listing-card-price strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.listing-card-price span {
  font-size: 14px;
  color: var(--text-secondary);
}

.listing-card-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.listing-card-highlights span {
  padding: 4px 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.listing-card-btns {
  display: flex;
  gap: 8px;
}

.listing-card-btns a {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.listing-card-btns .btn-detail {
  background: var(--primary-light);
  color: var(--primary);
}

.listing-card-btns .btn-detail:hover {
  background: var(--primary);
  color: white;
}

.listing-card-btns .btn-info {
  background: var(--primary);
  color: white;
}

.listing-card-btns .btn-info:hover {
  background: var(--primary-dark);
}

@media (max-width: 1024px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .listings-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Trust Points 信任模块
   ======================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: background 0.2s;
}

.trust-item:hover {
  background: var(--primary-light);
}

.trust-item .icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.trust-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

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

/* ========================================
   Process Steps 流程步骤
   ======================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-item {
  text-align: center;
  position: relative;
}

.process-item::after {
  display: none;
}

.process-item .number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.process-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-item::after {
    display: none;
  }
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #133aab 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-btns a {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.cta-btns .btn-white {
  background: white;
  color: var(--primary);
}

.cta-btns .btn-white:hover {
  background: var(--accent);
  color: white;
}

.cta-btns .btn-accent {
  background: var(--accent);
  color: white;
}

.cta-btns .btn-accent:hover {
  background: #c49009;
}

.cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
}

.cta-phone a {
  color: white;
  font-weight: 600;
}

.cta-phone a:hover {
  color: var(--accent);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-dark);
  color: #9ca3af;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-about {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-about .icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.footer-about div h4 {
  margin-bottom: 0;
}

.footer-about div p {
  font-size: 14px;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  font-size: 14px;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--primary);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.footer-bottom a {
  margin-left: 20px;
}

.footer-credit {
  font-size: 12px;
  color: #6b7280;
}

.footer-credit a:hover {
  color: #9ca3af;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

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

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

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

.btn-accent:hover {
  background: #c49009;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-item {
  position: relative;
}

.checkbox-item input {
  position: absolute;
  opacity: 0;
}

.checkbox-item label {
  display: inline-block;
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.checkbox-item input:checked + label {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.checkbox-item label:hover {
  border-color: var(--primary);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #133aab 100%);
  color: white;
  padding: 48px 0;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
}

.page-header-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #c49009 100%);
}

/* ========================================
   Listings Page
   ======================================== */
.listings-page {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 40px 0;
}

.filter-sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.filter-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.filter-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.filter-options input[type="radio"],
.filter-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.filter-clear {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.filter-clear:hover {
  background: var(--bg-secondary);
}

/* Mobile Filter */
.filter-toggle {
  display: none;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .listings-page {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    padding: 20px;
    overflow-y: auto;
  }

  .filter-sidebar.active {
    display: block;
  }

  .filter-card {
    max-width: 320px;
    margin-left: auto;
  }

  .filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* Search Bar */
.search-bar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-input {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-input input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

.search-input::before {
  content: '🔍';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.search-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-sort select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: white;
  cursor: pointer;
}

/* ========================================
   Listing Detail Page
   ======================================== */
.listing-detail {
  padding: 40px 0;
}

.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

.listing-main {
  min-width: 0;
}

.listing-sidebar {
  min-width: 0;
}

.listing-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 100px;
}

.listing-info-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.listing-info-card .location {
  color: #666;
  margin-bottom: 20px;
}

.listing-info-card .location i {
  color: var(--primary);
  margin-right: 5px;
}

.listing-price-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.listing-price-box .price {
  font-size: 32px;
  font-weight: 700;
}

.listing-price-box .rent {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 5px;
}

.listing-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.listing-spec {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.listing-spec .label {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.listing-spec .value {
  font-size: 16px;
  font-weight: 600;
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.listing-tags span {
  background: #e8f4fd;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.agent-contact-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.agent-contact-box h4 {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.agent-contact-box a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.agent-contact-box a:last-child {
  border-bottom: none;
}

.agent-contact-box a i {
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  margin-top: 30px;
}

.contact-form-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-form-card .form-group {
  margin-bottom: 15px;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.contact-form-card textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form-card button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: #f8f9fa;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-description {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  margin-top: 30px;
}

.listing-description h3 {
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  display: inline-block;
}

.listing-description p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.listing-description ul {
  list-style: none;
  padding: 0;
}

.listing-description ul li {
  padding: 8px 0;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-description ul li i {
  color: var(--primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
}

.listing-gallery {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.listing-main-image {
  height: 400px;
  background: #f3f4f6;
  position: relative;
}

.listing-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-thumbnails {
  display: flex;
  gap: 8px;
  padding: 16px;
  overflow-x: auto;
}

.listing-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.listing-thumbnails img:hover,
.listing-thumbnails img.active {
  opacity: 1;
}

.listing-info {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-top: 24px;
}

.listing-info h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.listing-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.listing-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.listing-price-item {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  text-align: center;
}

.listing-price-item.highlight {
  background: var(--primary-light);
}

.listing-price-item small {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.listing-price-item strong {
  font-size: 22px;
  font-weight: 700;
}

.listing-price-item.highlight strong {
  color: var(--primary);
}

.listing-highlights {
  margin-bottom: 24px;
}

.listing-highlights h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.listing-highlights ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-highlights li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 20px;
  font-size: 14px;
}

.listing-desc {
  margin-bottom: 24px;
}

.listing-desc h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.listing-desc p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Sidebar Actions */
.listing-sidebar {
  position: sticky;
  top: 90px;
}

.listing-action-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.listing-action-card small {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.listing-action-card .price {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.listing-action-card .meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.listing-action-card .btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.listing-action-card .response-time {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Privacy Notice */
.privacy-notice {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 24px;
}

.privacy-notice h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
}

.privacy-notice p {
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .listing-detail-grid {
    grid-template-columns: 1fr;
  }

  .listing-sidebar {
    position: static;
  }
}

/* ========================================
   FAQ Accordion
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--text-light);
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.hidden { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
