/* landsearch_result.php 모바일(≤767) 카드형 — 샘플 A 디자인.
   사진 + overlay(유찰·입찰D-day) + row1(case·감정가) + row2(용도·법원·최저가) + 주소·면적·footer.
   금액: 원단위 단일 표기, rate(80%) 최저가 앞에. */

@media (min-width: 768px) {
  .rsl-list .list-wrap.rsl-list__mobile--card { display: none; }
}

@media (max-width: 767px) {
  .rsl-list:not([data-view="card"]) .list-wrap.rsl-list__mobile--card { display: none; }
}

@media (max-width: 767px) {
  /* 카드형 컨테이너 */
  .rsl-list .list-wrap.rsl-list__mobile--card {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
    display: flex; flex-direction: column;
    gap: 20px;
  }

  /* 카드 본체 */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e1e4e9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex; flex-direction: column;
    cursor: pointer;
  }

  /* thumb + overlay (샘플 A — 좌측 정렬, 2줄) */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__thumb {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
  }
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }
  /* overlay: 사진 우측 하단에 떠 있는 박스 (물건용도 박스와 동일 시각 토큰) */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__overlay {
    position: absolute; bottom: 10px; right: 10px;
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    background: #e8f0ff;
    color: #1860ef;
    font-size: 14px; font-weight: 700;
    line-height: 1.4;
    border-radius: 4px;
    white-space: nowrap;
  }

  /* info 영역 */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__info {
    padding: 14px 16px;
    display: flex; flex-direction: column;
    gap: 6px;
  }

  /* row1: 사건번호(좌) | 감정가(우) — 우측 정렬 baseline */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__row1 {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px;
  }
  /* row2: 용도(좌, 파랑) | 최저가(우) */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__row2 {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px;
  }

  /* 사건번호 */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__case {
    font-size: 15px; font-weight: 600; color: #333;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0;
  }

  /* 용도(박스) + 법원(작은 회색) 좌측 묶음 */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__usage-group {
    display: inline-flex; align-items: center;
    gap: 6px;
    min-width: 0;
  }
  /* 용도 (박스) */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__usage {
    display: inline-flex; align-items: center;
    font-size: 15px; font-weight: 700;
    color: #1860ef; background: #e8f0ff;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.4;
    flex-shrink: 0;
    white-space: nowrap;
  }
  /* 법원 (14 / 600, 회색) — 리스트형 .case-id 굵기 기준 */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__court {
    font-size: 14px; font-weight: 600; color: #6b7280;
    white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    min-width: 0;
  }

  /* 가격 영역 — 리스트형 .p-label / .p-val 룰을 cascade 그대로 사용.
     카드형 row1·row2 우측 셀로만 변형 (inline-flex, 우측 정렬, 줄바꿈 금지). */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__appr,
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__min {
    display: inline-flex; align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
  }


  /* 주소 */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__addr {
    font-size: 15px; color: #000;
    line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 2px;
  }

  /* 면적 */
  .rsl-list .list-wrap.rsl-list__mobile--card .mcd__area {
    font-size: 15px; line-height: 1.3;
  }

  /* 가격(.p-val/.p-val.highlight/.p-rate) — 리스트형 14 cascade를 카드형에서 15로 override.
     .highlight 셀렉터도 명시해서 리스트형 .p-val.highlight specificity와 동률로 맞춤 (cascade 순서로 카드형 우선). */
  .rsl-list .list-wrap.rsl-list__mobile--card .p-val,
  .rsl-list .list-wrap.rsl-list__mobile--card .p-val.highlight,
  .rsl-list .list-wrap.rsl-list__mobile--card .p-rate {
    font-size: 15px;
  }
  /* rate(%) — 최저가와 동일 색상 */
  .rsl-list .list-wrap.rsl-list__mobile--card .p-rate {
    color: #4e7ff0;
  }

  /* footer 태그 — 리스트형과 동일 구조 (위험태그 좌측 + 조회수 우측).
     특수조건(.warn) 14, 조회수(.stat) 15 + 우측 정렬 명시 안전망. */
  .rsl-list .list-wrap.rsl-list__mobile--card .tag.warn {
    font-size: 14px;
  }
  .rsl-list .list-wrap.rsl-list__mobile--card .tag.stat {
    display: inline-flex; align-items: center;
    font-size: 15px;
    margin-left: auto;
    background: transparent;
    color: #111;
  }

  /* 위험·조회 태그는 리스트형 .item-footer / .tags-left / .tag.warn / .tag.stat 룰을 cascade 그대로 사용. */
}

