@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0');

/* Modern Property List Design for APT Index - V4 (Final Refinement) */

:root {
    /* Colors */
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --primary-color: #3b82f6;

    /* Badges */
    --badge-bg-date: #eff6ff;
    /* Blue 50 */
    --badge-text-date: #2563eb;
    /* Blue 600 */
    --badge-bg-type: #f3f4f6;
    /* Gray 100 */
    --badge-text-type: #374151;
    /* Gray 700 */

    /* Layout */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-lg: 16px;
    /* 더 둥글게 */
    --radius-full: 9999px;

    /* Spacing */
    --sp-sm: 8px;
    --sp-sm1: 12px;
    --sp-md: 16px;
    --sp-lg: 24px;
}

/* Container */
.datawrap {
    margin: 0 auto;
    padding: 0 var(--sp-md);
    max-width: 680px;
}

/* Card V2 Style */
.property-card-v2 {
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--sp-sm1);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
    /* 카드 간격 증가 */
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    height: 170px;
    max-width: 270px;
    gap: 5px;
}

.property-card-v2:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background-color: #f0f5fa;
}

/* Top Section */
.card-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* margin-bottom: 12px; */
    min-height: 25px;
    /* 배지가 없을 때도 공간 확보 (찜하기 버튼 위치 유지) */
}

.top-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.badge-date {
    background-color: var(--badge-bg-date);
    color: var(--badge-text-date);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.badge-type {
    background-color: var(--badge-bg-type);
    color: var(--badge-text-type);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.badge-chuchun {
    background-color: #fffbeb;
    color: #d97706;
    padding: 4px 1px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
}

.top-favorite .svg-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    /* 버튼 크기 약간 증가 */
    height: 25px;
    border-radius: 50%;
    background-color: #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.top-favorite .svg-toggle-icon:hover {
    background-color: #e5e7eb;
}

.top-favorite img {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    /* 아이콘 색상 연하게 */
}

.top-favorite .heart img {
    opacity: 1;
}

/* Price Section */
.card-price {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trade-badge-wrapper {
    display: block;
    /* margin-bottom: 6px; */
}

.trade-badge-item {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-right: 4px;
    line-height: 1;
}

.type-sale {
    background-color: #d1fae5;
    color: #047857;
}

.type-jeonse {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.type-wolse {
    background-color: #ede9fe;
    color: #7c3aed;
}

.type-bunyang {
    background-color: #fef3c7;
    color: #d97706;
}

.price-value {
    font-size: 16px;
    /* 이미지와 같이 매우 크게 */
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1.1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Divider Removed */
.card-divider {
    display: none;
}

/* Details Section */
.card-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.detail-icon {
    font-size: 22px;
    color: #9ca3af;
    /* 연한 회색 */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.detail-text {
    font-weight: 400;
    color: #4b5563;
}

/* Header Filter Styling (Kept from previous) */
/* Header Filter Styling */
.listDataHeader {
    background: var(--bg-card) !important;
    padding: 10px 8px !important;
    border-bottom: 1px solid var(--border-color) !important;
    /* display: flex !important; */
    /* align-items: center;
    justify-content: flex-start !important;
    gap: 6px !important; */
    /* position: sticky !important;
    top: 60px !important;
    z-index: 90 !important; */
    box-shadow: var(--shadow-sm) !important;
    height: auto !important;
    min-height: 48px;
    overflow-x: auto !important;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.listDataHeader::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* 부모의 flex 레이아웃을 따르도록 */
/* .listDataHeader>div:first-child {
    display: contents !important;
} */

#newlistupDown,
#moneyupDown,
#areaupDown {
    padding: 4px 8px !important;
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    color: var(--text-secondary) !important;
    font-size: 11px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    line-height: 1.2 !important;
    gap: 3px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

#newlistupDown:hover,
#moneyupDown:hover,
#areaupDown:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: #eff6ff !important;
}

/* Loading State */
.listdataWrap1:empty::before {
    content: "매물을 불러오는 중입니다...";
    display: block;
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 480px) {
    .property-card-v2 {
        padding: 20px;
    }

    .price-value {
        font-size: 28px;
    }
}