/* ===== 페이지 타이틀 ===== */
.page-title {
    padding: 60px 0;
    background: var(--light-gray);
    text-align: center;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ===== 매물 목록 섹션 ===== */
.properties-list-section {
    padding: 80px 0;
    background: #f8fafc;
}

/* ===== 필터 및 검색 바 ===== */
.filter-search-bar {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
}

.filter-tabs {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-btn {
    padding: 14px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #1e40af;
}

/* ===== 리스트 컨트롤 ===== */
.list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 4px;
}

.result-count {
    font-size: 16px;
    color: #475569;
}

.result-count strong {
    color: #2563eb;
    font-weight: 700;
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #2563eb;
}

/* ===== 매물 그리드 ===== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

/* ===== 매물 카드 ===== */
.property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.property-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f1f5f9;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #94a3b8;
    font-size: 56px;
}

/* ===== 뱃지 ===== */
.transaction-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.transaction-badge.jeonse {
    background: #3b82f6;
}

.transaction-badge.wolse {
    background: #10b981;
}

.transaction-badge.maemae {
    background: #f59e0b;
}

.transaction-badge.jeonwolse {
    background: #8b5cf6;
}

.status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.status-badge.completed {
    background: #059669;
}

.status-badge.pending {
    background: #f59e0b;
}

.status-badge.waiting {
    background: #6366f1;
}

/* ===== 매물 바디 ===== */
.property-body {
    padding: 24px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.property-type {
    display: inline-block;
    padding: 6px 12px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.property-manager {
    font-size: 12px;
    color: #64748b;
}

.property-manager i {
    margin-right: 4px;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.property-location i {
    color: #94a3b8;
}

.property-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.property-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.property-info-item i {
    color: #94a3b8;
}

.property-price {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

/* ===== 가격 상세 표시 (분리 형식) ===== */
.property-price-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 0 0;
    border-top: 1px solid #e2e8f0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.price-label {
    color: #64748b;
    font-weight: 500;
}

.price-value {
    color: #1e293b;
    font-weight: 700;
    font-size: 15px;
}

.price-contact {
    padding: 8px 16px;
    text-align: center;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* ===== 페이지네이션 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.page-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.page-dots {
    color: #cbd5e1;
    padding: 0 4px;
}

/* ===== 로딩 ===== */
.loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #64748b;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 반응형 ===== */
@media (max-width: 968px) {
    .page-title h1 {
        font-size: 36px;
    }

    .page-title p {
        font-size: 16px;
    }

    .properties-list-section {
        padding: 60px 0;
    }

    .filter-search-bar {
        padding: 24px;
    }

    .filter-tabs {
        gap: 20px;
    }

    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .property-card {
        border-radius: 12px;
    }

    .property-image {
        height: 200px;
    }

    .property-body {
        padding: 20px;
    }

    .property-title {
        font-size: 16px;
    }

    .property-price {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .page-title {
        padding: 40px 0;
    }

    .page-title h1 {
        font-size: 24px;
    }

    .properties-list-section {
        padding: 40px 0;
    }

    .filter-search-bar {
        padding: 20px;
    }

    .filter-group label {
        font-size: 13px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .search-btn {
        padding: 12px 20px;
    }

    .list-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .property-image {
        height: 180px;
    }

    .property-body {
        padding: 16px;
    }

    .property-title {
        font-size: 15px;
    }

    .property-location {
        font-size: 13px;
    }

    .property-info-item {
        font-size: 12px;
    }

    .property-price {
        font-size: 17px;
    }

    .pagination {
        margin-top: 40px;
        gap: 6px;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
