/* Property Listing Page Styles */

/* 容器 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 页面标题 */
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
}

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

.mb-40 {
  margin-bottom: 40px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-10 {
  margin-top: 10px;
}

/* 筛选栏 */
.filters {
  background: white;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f5f5f5;
}

.filters-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
}

.filters-reset {
  color: #D4AF37;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filters-reset:hover {
  color: #b8941f;
  text-decoration: underline;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.filter-group select {
  padding: 12px 15px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.filter-group select:hover {
  border-color: #D4AF37;
}

/* 房源网格 */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px;
}

/* 房源卡片 */
.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.property-card .mls {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.property-info {
  padding: 20px;
}

.property-info .price {
  font-size: 28px;
  font-weight: 700;
  color: #D4AF37;
  margin: 0 0 10px 0;
  font-family: 'Roboto Mono', monospace;
}

.property-info .address {
  font-size: 15px;
  color: #666;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.property-info .specs {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
}

.property-info .specs span {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  font-size: 12px;
  color: #666;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #D4AF37;
  color: white;
}

.btn-primary:hover {
  background: #b8941f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* 分页 */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 1199px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
  }
  
  .filters-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .filters {
    padding: 20px;
  }
  
  .filters-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  
  .properties-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .property-card img {
    height: 200px;
  }
  
  .property-info .price {
    font-size: 24px;
  }
  
  .filters-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
  }
  
  .property-info {
    padding: 15px;
  }
  
  .property-info .price {
    font-size: 22px;
  }
  
  .property-info .specs {
    flex-wrap: wrap;
    gap: 10px;
  }
}
