/* v7/real_estate/list.css — 부동산 매물 목록 페이지 (모던·심플 디자인 리뉴얼 2026-05-12) */

/* === 페이지 배경 (모든 부동산 페이지 공통 톤) === */
body:has(.re-list-page) { background: #f8fafc; }

.re-list-page {
    padding: 1.5rem 1rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* === 헤더 — 보더 라인 제거, 깔끔한 여백으로 === */
.re-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.re-page-title h1 {
    margin: 0 0 0.375rem 0;
    font-size: 1.625rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.re-page-title h1 i {
    color: #2563eb;
    font-size: 1.5rem;
}
.re-page-summary {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.re-page-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* === 검색 필터 — 컴팩트(기본) + 상세 필터링(<details>로 접힘) ===
   설계 원칙:
   - 컴팩트: [매매·임대 토글] + 검색어 / 지역 / 가격 / 검색 / 초기화 / 상세 필터링 토글
   - 상세: <details>로 접힘. 매물의 거의 모든 옵션으로 검색
   - 검색 버튼은 어떤 화면 크기에서도 절대 잘리지 않는다
   - 2026-05 디자인 리뉴얼: 검색 영역 자체를 "카드"화하여 페이지 콘텐츠와 시각적으로 분리.
     흰 배경 + 옅은 보더 + 가벼운 그림자로 매물 카드와 톤을 맞춤 (매물 카드: border-radius 14px). */
.re-filter-form {
    margin-bottom: 1.25rem;
    padding: 1rem 1.125rem 1.125rem;
    background: #fff;
    border: 1px solid var(--wa-color-neutral-90, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* 컴팩트 한 줄 — 가로 갭은 좁게, 세로 wrap 시 갭은 약간 더 두어 한눈에 줄 구분 */
.re-filter-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* 검색어 input — 컴팩트 필터의 첫 텍스트 컨트롤.
   데스크톱: 한 줄 안에서 남은 공간을 차지하도록 flex grow (min 220px → 카드 폭에 맞춰 자연 확장)
   모바일: 100% 폭.
   ⚠️ 아래쪽에 정의된 `.re-filter-input { width: 58px }`(range input용)에 덮이지 않도록 selector specificity 강화. */
.re-filter-input.re-filter-input-search {
    flex: 1 1 220px;
    width: auto;
    min-width: 0;
    padding: 0 0.75rem;
    text-align: left;
}

/* Enter 키로 form implicit submit 시 사용될 native button.
   wa-button은 커스텀 element라 implicit submit 트리거가 되지 않으므로 보조용. 시각적으로는 완전히 숨김. */
.re-filter-hidden-submit {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
}

/* 컴팩트 영역 초기화 버튼 — 검색 버튼 옆에 작게. 보조 액션이므로 톤 다운(neutral).
   다른 컨트롤(36px)과 높이 통일. */
.re-filter-reset-compact {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 0.875rem;
    background: #fff;
    border: 1px solid var(--wa-color-neutral-85, #cbd5e1);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--wa-color-neutral-30, #1e293b);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.re-filter-reset-compact:hover {
    background: #f1f5f9;
    border-color: var(--wa-color-brand-50, #2563eb);
    color: var(--wa-color-brand-40, #1e40af);
}
.re-filter-reset-compact i { font-size: 0.9em; }

/* 검색 버튼(wa-button size="small")이 옆 컨트롤(height 36px)과 시각 무게가 맞도록 미세 보정 */
.re-filter-submit::part(base) {
    height: 36px;
    min-height: 36px;
    font-size: 0.875rem;
    padding: 0 1rem;
}

/* 공통: 필터 컨트롤 한 줄 고정폭 — 줄어들거나 늘어나지 않음 */
.re-filter-select,
.re-filter-input {
    flex: 0 0 auto;
    height: 36px;
    border: 1px solid var(--wa-color-neutral-85, #cbd5e1);
    border-radius: 8px;
    background: #fff;
    font-size: 0.875rem;
    color: var(--wa-color-neutral-20, #0f172a);
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.re-filter-select:focus,
.re-filter-input:focus {
    outline: none;
    border-color: var(--wa-color-brand-50, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* 필터 active 상태 — 사용자가 선택한 필터를 한눈에. 파란 테두리 + 옅은 파란 배경 + 강조 텍스트 */
.re-filter-select.is-active,
.re-filter-input.is-active {
    border-color: var(--wa-color-brand-50, #2563eb);
    background-color: var(--wa-color-brand-95, #eff6ff);
    color: var(--wa-color-brand-40, #1e40af);
    font-weight: 600;
}
.re-filter-select.is-active {
    /* 활성화된 select 의 chevron 색을 brand 톤으로 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231e40af' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

/* select — appearance 제거 후 일관된 chevron 아이콘. width는 콘텐츠 폭으로 (글로벌 select{width:100%} 무력화) */
.re-filter-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: auto;
    max-width: 11rem;
    padding: 0 1.85rem 0 0.75rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    background-size: 0.75rem;
}
.re-filter-select.re-filter-narrow { max-width: 5rem; }

/* 면적·가격 범위 묶음 (단위 + min ~ max) */
.re-filter-range {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}
.re-filter-unit {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wa-color-neutral-40, #475569);
    padding-left: 0.25rem;
}
/* "가격(페소)" 텍스트 라벨 — 기존 ₱ 한 글자보다 폭이 넓어 별도 스타일 부여.
   배경·보더 없이 가벼운 텍스트 라벨로 처리하고 옆 input 과 자연스럽게 붙도록 padding 조정. */
.re-filter-unit-price {
    padding-left: 0.125rem;
    padding-right: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wa-color-neutral-30, #334155);
    white-space: nowrap;
}
.re-filter-sep {
    flex: 0 0 auto;
    font-size: 0.875rem;
    color: var(--wa-color-neutral-60, #94a3b8);
    padding: 0 0.125rem;
}
.re-filter-input {
    width: 72px;
    padding: 0 0.5rem;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.re-filter-input::-webkit-outer-spin-button,
.re-filter-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.re-filter-input::placeholder { color: var(--wa-color-neutral-60, #94a3b8); }

/* 검색 버튼 — 가장 중요한 액션이므로 시각적으로 강조.
   - 줄어들지 않게 고정
   - margin-left: auto 로 같은 줄에서 항상 오른쪽 정렬 (시각적 우선순위) */
.re-filter-submit {
    flex: 0 0 auto;
    margin-left: auto;
}

/*
 * 모바일(<768px) — 검색 input·초기화 추가 후 새 레이아웃 (2026-05).
 *
 * Row 1: 🔍 검색어 input (100%)
 * Row 2: 지역 (100%)
 * Row 3: ₱ 가격 range (100%)
 * Row 4: 🔍 검색 (50%) · 초기화 (50%)
 * Row 5: 상세 필터링 토글 (100%)
 */
@media (max-width: 767px) {
    .re-filter-form {
        padding: 0.875rem 0.875rem 1rem;
        border-radius: 12px;
    }
    .re-filter-compact {
        gap: 0.5rem;
    }
    /* 모바일에선 컨트롤 높이 키워 터치 영역 확보 (40px 권장) */
    .re-filter-select,
    .re-filter-input,
    .re-filter-reset-compact,
    .re-filter-toggle {
        height: 40px;
        font-size: 0.9375rem;
    }
    .re-filter-submit::part(base) {
        height: 40px;
        min-height: 40px;
        font-size: 0.9375rem;
    }
    /* 검색 input — 모바일에선 100% 폭 강조 */
    .re-filter-input-search {
        flex: 1 1 100%;
        width: auto;
    }
    /* 컴팩트에 남은 select(지역) — 단독 100% 폭 */
    .re-filter-compact .re-filter-select {
        flex: 1 1 100%;
        max-width: none;
    }
    /* 컴팩트 가격 range 도 한 줄 폭으로 강조 */
    .re-filter-compact .re-filter-range {
        flex: 1 1 100%;
        min-width: 0;
        gap: 0.3rem;
    }
    .re-filter-compact .re-filter-range .re-filter-input {
        flex: 1 1 0;       /* range 폭에 맞춰 input 이 줄어듦 */
        width: auto;
        min-width: 0;
        padding: 0 0.5rem;
        text-align: center;
    }
    /* 검색 / 초기화 — 한 줄에 50:50 */
    .re-filter-submit {
        flex: 1 1 calc(50% - 0.25rem);
        margin-left: 0;
    }
    .re-filter-submit::part(base) {
        width: 100%;
    }
    .re-filter-reset-compact {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }
    /* 상세 필터링 토글 — 단독 줄 */
    .re-filter-toggle {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* === 상세 필터링 토글 — 다른 컨트롤과 동일 톤의 보더 유지, 시각 무게 일관 === */
.re-filter-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 0.875rem;
    background: #fff;
    border: 1px solid var(--wa-color-neutral-85, #cbd5e1);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--wa-color-neutral-30, #1e293b);
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.re-filter-toggle:hover {
    background: #f1f5f9;
    border-color: var(--wa-color-brand-50, #2563eb);
    color: var(--wa-color-brand-40, #1e40af);
}
.re-filter-toggle.is-active {
    border-color: var(--wa-color-brand-50, #2563eb);
    background-color: var(--wa-color-brand-95, #eff6ff);
    color: var(--wa-color-brand-40, #1e40af);
    font-weight: 600;
}
.re-filter-toggle-arrow {
    font-size: 0.7em;
    color: var(--wa-color-neutral-50, #64748b);
    transition: transform 0.2s ease;
}
.re-filter-toggle.is-open .re-filter-toggle-arrow {
    transform: rotate(180deg);
}

/* === 상세 필터링 패널 (<details>) === */
/* <details> — 어떤 1px 흔적도 남기지 않도록 모든 잠재 후보 명시 리셋.
   닫힌 상태는 spacing 0, 열린 상태는 margin-top spacing만으로 시각 분리. */
.re-filter-advanced {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}
/* 펼친 상태 — 컴팩트 영역과 시각적으로 분리되는 위 spacing + 1px 구분선.
   카드(흰 배경) 내부이므로 분할선은 매우 옅은 톤(neutral-95). */
.re-filter-advanced[open] {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--wa-color-neutral-95, #f1f5f9);
}
/* 기본 <summary> 마커 숨김 — 토글 버튼이 별도로 있어서 중복 마커는 불필요.
   다만 접근성을 위해 summary 자체는 남기되 시각적으로 숨김(스크린리더용). */
.re-filter-advanced-summary {
    /* 시각적으로 숨김 — 토글 버튼이 외부에 있으므로 중복 표시 방지 */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}
.re-filter-advanced[open] .re-filter-advanced-summary {
    /* 패널이 열렸을 때도 시각적으로는 숨김 유지 */
}
/* summary 의 기본 마커(▶) 제거 */
.re-filter-advanced > summary::-webkit-details-marker { display: none; }
.re-filter-advanced > summary::marker { content: ''; }

/* 상세 필드 그리드 — 데스크톱 4열 / 태블릿 3열 / 모바일 2열 */
.re-filter-advanced-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1rem;
}
@media (max-width: 1023px) {
    .re-filter-advanced-body { grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }
}
@media (max-width: 639px) {
    .re-filter-advanced-body { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* 상세 필드 1개 단위 — 라벨 + 컨트롤 세로 배치 */
.re-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}
.re-filter-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wa-color-neutral-30, #334155);
    letter-spacing: -0.005em;
}

/* 상세 패널 안의 select·range 는 셀 폭 100% — re-filter-full 유틸리티 */
.re-filter-full { width: 100%; max-width: none !important; }
.re-filter-advanced .re-filter-range.re-filter-full {
    display: flex;
    flex: 1 1 100%;
    gap: 0.25rem;
}
.re-filter-advanced .re-filter-range.re-filter-full .re-filter-input-wide {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

/* 부대 옵션 chip — 체크박스를 chip 형태로. spacing만으로 시각 분리(분할선 없음) */
.re-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.125rem;
}
.re-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 0.95rem;
    background: #fff;
    border: 1px solid var(--wa-color-neutral-85, #cbd5e1);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--wa-color-neutral-20, #0f172a);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.re-filter-chip:hover {
    background: var(--wa-color-brand-95, #eff6ff);
    border-color: var(--wa-color-brand-50, #2563eb);
}
.re-filter-chip input[type="checkbox"] {
    /* 시각적으로 숨김 — chip 자체의 .is-active 상태로 표현 */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
}
.re-filter-chip.is-active,
.re-filter-chip:has(input[type="checkbox"]:checked) {
    border-color: var(--wa-color-brand-50, #2563eb);
    background-color: var(--wa-color-brand-95, #eff6ff);
    color: var(--wa-color-brand-40, #1e40af);
    font-weight: 600;
}
.re-filter-chip i {
    color: var(--wa-color-brand-50, #2563eb);
    font-size: 0.9em;
}
.re-filter-chip.is-active i,
.re-filter-chip:has(input[type="checkbox"]:checked) i {
    color: var(--wa-color-brand-40, #1e40af);
}

/* 상세 필터링 액션 (초기화 / 적용) — spacing만으로 시각 분리(분할선 없음) */
.re-filter-advanced-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.re-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--wa-color-neutral-40, #475569);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.15s, color 0.15s;
}
.re-filter-reset:hover {
    background: #f1f5f9;
    color: var(--wa-color-brand-50, #2563eb);
}
.re-filter-reset i { font-size: 0.85em; }

/* === Grid (모바일 2단 / 데스크톱 3단) === */
.re-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .re-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* === 카드 (모던·심플) === */
.re-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.re-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.re-card-thumb {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}
.re-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.re-card-no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    gap: 0.25rem;
}
.re-card-no-photo i {
    font-size: 2rem;
    opacity: 0.6;
}
.re-card-no-photo::after {
    content: '사진 없음';
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* 배지 컨테이너 — 좌상단에 매매·임대·R2O 배지를 가로로 나란히 배치(한 매물이 여러 거래 유형 동시 가능). */
.re-card-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    max-width: calc(100% - 1rem);
    z-index: 1;
}

/* 배지 — 작은 pill + 약한 그림자(사진 위에서 식별성, 톤은 정돈) */
.re-card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
    backdrop-filter: saturate(140%);
    -webkit-backdrop-filter: saturate(140%);
}
/* 컨테이너 안의 배지는 컨테이너가 절대 배치를 담당하므로 static 으로 해제. */
.re-card-badges .re-card-badge {
    position: static;
    top: auto;
    left: auto;
}
.re-badge-s { background: #2563eb; }  /* Sale */
.re-badge-r { background: #16a34a; }  /* Rent */
.re-badge-t { background: #d97706; }  /* Rent-to-Own — 살짝 톤다운된 amber */

.re-card-body {
    padding: 0.75rem 0.85rem;
}

.re-card-price {
    font-size: 1.1875rem;
    font-weight: 800;
    color: #0f172a;        /* 모던 톤 — 검은 글자가 더 깔끔 */
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}

/* specs(침실·욕실·면적) — 한 줄 강제, 넘치면 ellipsis */
.re-card-specs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--wa-color-neutral-40, #475569);
    margin-bottom: 0.35rem;
    overflow: hidden;
    white-space: nowrap;
}
.re-card-specs > span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex: 0 0 auto;
}
.re-card-specs i {
    color: var(--wa-color-brand-50, #2563eb);
    font-size: 0.85em;
}

.re-card-location {
    font-size: 0.8125rem;
    color: var(--wa-color-neutral-40, #475569);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.re-card-location i {
    color: var(--wa-color-brand-50, #2563eb);
    margin-right: 0.2rem;
}

.re-card-broker {
    font-size: 0.75rem;
    color: var(--wa-color-neutral-50, #64748b);   /* 진한 파랑 → 중립톤(가격에 시선 집중) */
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--wa-color-neutral-95, #f1f5f9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.re-card-broker i {
    margin-right: 0.2rem;
    color: var(--wa-color-neutral-60, #94a3b8);
}

/* 모바일(<768px)에서만 카드 padding·gap 확보(다른 팀 권고) */
@media (max-width: 767px) {
    .re-card-body { padding: 0.85rem 0.85rem 0.8rem; }
    .re-card-price { font-size: 1.05rem; }
    .re-card-specs { gap: 0.55rem; font-size: 0.78125rem; }
    .re-card-location { font-size: 0.78125rem; }
    .re-grid { gap: 0.875rem; }   /* 카드 간 간격 ↑ */
}

/* === 네이티브 광고 카드 (매물 카드와 동일 골격 + 식별 요소) === */
.re-card-ad {
    /* 광고 식별을 위한 살짝 따뜻한 보더 — 매물 카드와 구분되지만 튀지 않게 subtle */
    border: 1px solid var(--wa-color-warning-90, #fde68a);
    background: linear-gradient(180deg, #fffdf6 0%, #ffffff 60%);
}
.re-card-ad:hover {
    border-color: var(--wa-color-warning-80, #fcd34d);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.12);
}
.re-badge-ad {
    /* "광고" 뱃지 — 식별 강조 + 깔끔한 그라데이션 + 작은 그림자 */
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.re-card-ad-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--wa-color-neutral-20, #0f172a);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    /* 최대 두 줄까지 표시 — 제목이 짧으면 한 줄, 길어도 그리드 정렬 안정 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.re-card-ad-desc {
    /* 광고 설명 — 최대 두 줄까지 표시. .re-card-location 과 별도 클래스로 분리해 색상·여백 명확화. */
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--wa-color-neutral-50, #64748b);
}
.re-card-ad-desc i {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--wa-color-warning-50, #d97706);
}
.re-card-ad-desc span {
    /* 두 줄 line-clamp — 회사명·서브 카피가 길어도 두 줄까지 안정 표시 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}
/* 광고 카드 전화번호 — 큰 글자로 강조해 한눈에 식별. 한 줄에 안 들어가면 ellipsis. */
.re-card-ad-phone {
    margin-top: 0.55rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #dc2626;                /* tailwind red-600 */
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .re-card-ad-phone { font-size: 0.95rem; }
}

/* === 빈 상태 === */
.re-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--wa-color-neutral-50, #64748b);
}
.re-empty p {
    font-size: 1rem;
    margin: 1rem 0 1.5rem 0;
}

/* === 페이지네이션 === */
.re-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.re-page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--wa-color-neutral-80, #cbd5e1);
    border-radius: 6px;
    text-decoration: none;
    color: var(--wa-color-neutral-30, #1e293b);
    background: #fff;
    font-size: 0.875rem;
}
.re-page-link:hover {
    background: #f1f5f9;
    border-color: var(--wa-color-brand-50, #2563eb);
    color: var(--wa-color-brand-50, #2563eb);
}
.re-page-current {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: var(--wa-color-neutral-50, #64748b);
}

/* === 무한 스크롤 (sentinel / 로딩 / 끝) === */
#re-list-sentinel {
    height: 1px;
}
.re-list-loading, .re-list-end {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--wa-color-neutral-50, #64748b);
    font-size: 0.875rem;
}
.re-list-loading i {
    color: var(--wa-color-brand-50, #2563eb);
    margin-right: 0.375rem;
}

/* === 거래 유형 빠른 필터 ([매매]/[임대] pill 토글) — 검색 form 최상단 ===
   검색이 페이지의 주된 동작이므로 시각 무게를 [등록하기]보다 크게 가져간다.
   - 폰트·padding·height 모두 일반 컨트롤보다 한 단계 키움
   - 보더 2px + brand 톤 hover 로 클릭 가능성 강조 */
.re-tx-quick-filter {
    display: flex;
    gap: 0.625rem;
    margin: 0 0 0.875rem 0;
    flex-wrap: wrap;
}
.re-tx-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    padding: 0 1.375rem;
    background: #fff;
    border: 2px solid var(--wa-color-neutral-80, #94a3b8);
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--wa-color-neutral-20, #0f172a);
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.re-tx-pill i {
    font-size: 1rem;
    color: var(--wa-color-brand-50, #2563eb);
}
.re-tx-pill:hover {
    border-color: var(--wa-color-brand-50, #2563eb);
    background: var(--wa-color-brand-95, #eff6ff);
    color: var(--wa-color-brand-40, #1e40af);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}
.re-tx-pill:hover i {
    color: var(--wa-color-brand-40, #1e40af);
}
.re-tx-pill:active {
    transform: translateY(1px);
}
.re-tx-pill.is-active {
    border-color: var(--wa-color-brand-50, #2563eb);
    background-color: var(--wa-color-brand-50, #2563eb);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}
.re-tx-pill.is-active i {
    color: #ffffff;
}

@media (max-width: 767px) {
    .re-tx-quick-filter {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    .re-tx-pill {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
        height: 44px;
        padding: 0 1rem;
        font-size: 0.9375rem;
    }
}
