/* 列表頁面主容器 */
.listing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 篩選區域 */
.filter-sidebar {
    max-width: none;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

/* 篩選表單布局 */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* 篩選行 */
.filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 篩選區塊 */
.filter-section {
    flex: 2;
    min-width: 200px;
}

/* 下拉選單 */
.filter-select {
    width: 100%;
    height: 36px;
    padding: 0 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* 範圍輸入框容器 */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 範圍輸入框 */
.range-inputs input {
    flex: 1;
    height: 36px;
    padding: 0 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 0;
}

.range-inputs span {
    color: #666;
}

/* 按鈕組 */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 160px;
}

.filter-submit,
.filter-reset {
    flex: 1;
    height: 36px;
    padding: 0 1rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 60px;
}

.filter-submit {
    background: var(--secondary-color);
    color: white;
    border: none;
}

.filter-reset {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    text-decoration: none;
    text-align: center;
    line-height: 36px;
}

/* 調整第一排的 filter-section 比例 */
.filter-row:first-child .filter-section {
    flex: 1;
}

/* 調整第二排的 filter-section 比例 */
.filter-row:last-child .filter-section {
    flex: 2;
}

/* 物件列表區域 */
.property-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
}

/* 響應式調整 */
@media (max-width: 1200px) {
    .property-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 0.6rem;
    }

    .filter-section {
        width: 100%;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-submit,
    .filter-reset {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .property-list {
        grid-template-columns: 1fr;
    }
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    height: 200px;
    overflow: hidden;
}

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

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.property-location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-price {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.property-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.view-details {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.view-details:hover {
    background: #2980b9;
}

/* 分頁 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* 單價樣式 */
.price-per-ping {
    font-size: 0.85em;
    color: #666;
    margin-left: 0.5rem;
    font-weight: normal;
}

/* 調整價格容器 */
.property-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem;
} 