/* ===============================
   LISTING CARD (Mini / List)
   - assets DB 기준 표시
   =============================== */

.mini-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ---------- 네이버 스타일 미니카드 ---------- */
.mini-card.mini-card--naver {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  box-sizing: border-box;
}

/* 예비 매물 카드: 주황색 띠(테두리) 강조 */
.mini-card.mini-card--naver[data-placeholder="1"] {
  border: 2px solid #fb923c; /* orange-400 */
  box-shadow: 0 0 0 1px rgba(248, 153, 60, 0.45);
}

/* 배너 행: 상업/상가/월세 + 확인날짜/거래상태 (세로 정렬) */
.mini-card-row--badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.mini-card-row--badges .cat-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mini-card-row--badges .mini-card-meta-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}

.mini-card-meta {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}

.mini-card-meta--date {
  background: #e0e7ff;
  color: #4338ca;
}

.mini-card-meta--status {
  background: #d1fae5;
  color: #047857;
}

.mini-card-meta-wrap .mini-card-meta[data-status="hold"] {
  background: #fef3c7;
  color: #b45309;
}

.mini-card-meta-wrap .mini-card-meta[data-status="completed"] {
  background: #f3f4f6;
  color: #4b5563;
}

.mini-card-meta-wrap .mini-card-meta[data-status="checking"] {
  background: #fed7aa;
  color: #c2410c;
}

.mini-card-meta--no-contact {
  background: #f3e8ff;
  color: #6d28d9;
}

.mini-card.mini-card--naver:active {
  background: #f9fafb;
}

/* 세부내역서 열린 미니카드: 파란색 테두리 */
.mini-card.mini-card--detail-open {
  border: 1px solid #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.mini-card-thumb-wrap {
  flex-shrink: 0;
}

.mini-card-thumb {
  display: block;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #f3f4f6;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

.mini-card-thumb--empty {
  background: #e5e7e7;
  border-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-card-thumb-watermark {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.12);
  letter-spacing: 0.02em;
  user-select: none;
}

.mini-card-body {
  flex: 1;
  min-width: 0;
}

.mini-card-row {
  margin-bottom: 6px;
}

.mini-card-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
}

.mini-card-price {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  margin-top: 2px;
  line-height: 1.35;
  word-break: break-all;
}

/* 매매 시 평당금액 (메인 가격보다 작은 폰트) */
.mini-card-price-pyeong {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-left: 4px;
}

.mini-card-name {
  font-size: 13px;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.mini-card-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.mini-card-name-row .mini-card-name {
  flex: 1;
}

.mini-card-fav {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #d1d5db;
}

.mini-card-fav--on {
  color: #f59e0b;
}

.mini-card-fav:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.mini-card-shortmemo {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-card-area {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* 건물모드 버튼 (미니카드 상단 1개) */
.mini-wrap__buildingModeBar {
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #eee;
}

.mini-wrap__buildingMode {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mini-wrap__buildingMode:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* (레거시) 개별 카드 건물모드 - 제거됨, 참고용 유지 */
.mini-card__buildingMode {
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mini-card__buildingMode:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* 좌 텍스트 / 우 썸네일 네모 (기존 lc-card) */
.mini-card.lc-card {
  width: 100%;
  border: 1px solid #e7e7e7;
  background: #fff;
  border-radius: 14px;
  padding: 12px;

  display: flex;
  gap: 10px;
  align-items: stretch;

  cursor: pointer;
}

.mini-card.lc-card:active {
  transform: scale(0.995);
}

.lc-left {
  flex: 1;
  min-width: 0; /* ellipsis 필수 */
}

/* 주소 1줄 */
.lc-addr {
  font-size: 13px;
  font-weight: 800;
  color: #111;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 이름: 없으면 공란 */
.lc-name {
  font-size: 12px;
  color: #444;
  margin-top: 6px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  min-height: 16px;
}

/* 거래유형 / 보증 / 월세 / 권리금 / 전용평 */
.lc-row {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}

/* 거래유형 뱃지 */
.lc-pill {
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 999px;
  white-space: nowrap;
}

/* 숫자들 */
.lc-num {
  font-size: 13px;
  font-weight: 900;
  color: #111;
  white-space: nowrap;
}

/* 전용평은 오른쪽 끝 */
.lc-area {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: #666;
  white-space: nowrap;
}

/* 값이 없으면 공란 처리 */
.is-empty {
  color: transparent;
  border-color: transparent;
}

/* 썸네일 네모 */
.lc-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fafafa;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  flex: 0 0 auto;
}
