/* 房源列表容器 */
.property-list-container {
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* 修正：减少间隙，确保铺满一行 */
.property-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  padding: 8px !important;
}

.property-card {
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 清除可能的干扰样式 */
.property-card > div {
  margin: 0 !important;
  padding: 0 !important;
}

/* 手机端优化 */
@media (max-width: 600px) {
  .property-list {
    gap: 6px !important;
    padding: 6px !important;
  }
}

/* 筛选栏 */
.filter-bar {
    background: #fff;
    padding: 0;
    margin-bottom: 20px;
}

.filter-options {
    display: flex;
    padding: 0 15px;
    border-top: 1px solid #f5f5f5;
    padding-top: 10px;
}

.filter-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #666;
    padding: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-option:hover {
    color: #ff6b35;
}

.filter-option span {
    margin-right: 3px;
}

.icon-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666;
    margin-left: 2px;
}

/* 房源网格布局 */
.property-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

/* 房源卡片 */
.property-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 130px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.status-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
}

.time-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #ff00aa;
    font-size: 12px;
    padding: 4px 8px;
    text-align: left;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content {
    padding: 12px;
}

.card-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-address {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-attrs {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.card-price {
    margin-bottom: 8px;
}

.price-info {
    display: flex;
    align-items: baseline;
    margin-bottom: 4px;
}

.price-label {
    font-size: 12px;
    color: #999;
}

.price-value {
    font-size: 13px;
    color: #ff6b35;
    font-weight: bold;
    margin-left: 4px;
}

.price-separator {
    font-size: 12px;
    color: #999;
    margin: 0 4px;
}

/* 加载状态 */
.loading-placeholder {
    text-align: center;
    padding: 50px 0;
}

.loading-placeholder .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-placeholder p {
    color: #999;
    font-size: 14px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px 0;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state p {
    color: #999;
    font-size: 16px;
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: 50px 0;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.error-state p {
    color: #999;
    font-size: 16px;
    margin-bottom: 20px;
}

.retry-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.retry-btn:hover {
    opacity: 0.9;
}

/* 加载更多 */
.load-more {
    padding: 15px;
    text-align: center;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-spinner .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 筛选弹窗 */
.filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    flex-shrink: 0;
}

.popup-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px;
    margin-bottom: 0;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px 0;
}

.filter-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    text-align: center;
    min-height: 40px;
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.filter-option-item.selected {
    color: #ff6b35;
    border-color: #ff6b35;
    background-color: #fff8f5;
    font-weight: bold;
}

.icon-check {
    position: absolute;
    bottom: 2px;
    right: 2px;
    color: #ff6b35;
    font-size: 12px;
}

/* 价格筛选特殊样式 */
.price-quick-options {
    padding: 15px 0 10px;
}

.divider {
    height: 1px;
    background-color: #f5f5f5;
    margin: 0 -15px;
}

.custom-price-input {
    padding: 15px 0;
}

.custom-price-input label {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input-group input {
    flex: 1;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

.price-input-group input:focus {
    border-color: #ff6b35;
    outline: none;
}

.price-input-group span {
    font-size: 14px;
    color: #999;
    padding: 0 4px;
}

/* 弹窗底部按钮 */
.popup-footer {
    display: flex;
    gap: 10px;
    padding: 12px 15px;
    background-color: #fff;
    border-top: 1px solid #f5f5f5;
    flex-shrink: 0;
}

.btn-reset {
    flex: 0.4;
    background-color: #f5f5f5;
    color: #666;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-reset:hover {
    background-color: #e0e0e0;
}

.btn-confirm {
    flex: 0.6;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-confirm:hover {
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-image-wrapper {
        height: 200px;
    }
    
    .filter-options {
        padding: 0 10px;
    }
    
    .filter-option {
        font-size: 12px;
        padding: 6px;
    }
}