/* ============================================================
   청약로그 모듈 — 관심단지 저장·이어보기 (favorites.css)
   - 모든 클래스는 .cylfav- 접두사로 스코프 (기존 style.css와 충돌 없음)
   - style.css 다음에 로드하세요
   ============================================================ */

/* 카드 위 ♡ 토글 */
.card.apt.cylfav-host { position: relative; }
.cylfav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line, #e5e8eb);
  background: #fff; color: #c2c9d1;
  font-size: 19px; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 4px rgba(22, 35, 63, 0.08);
  font-family: inherit; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.cylfav-btn.on { color: var(--red, #e0443e); border-color: #f6c6c4; background: #fff7f7; }

/* 카드 뱃지가 토글과 겹치지 않게 여백 확보 */
.card.apt.cylfav-host .top { padding-right: 46px; }

/* 이어보기 하이라이트 */
.cylfav-pulse {
  outline: 2px solid var(--blue, #3182f6);
  outline-offset: 2px;
  transition: outline-color 0.3s;
}

/* 플로팅 버튼 */
.cylfav-fab {
  position: fixed; right: 16px; bottom: 24px; z-index: 55;
  border: 0; border-radius: 999px;
  background: var(--navy, #16233f); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 12px 18px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 35, 63, 0.28);
  font-family: inherit;
}
@media (max-width: 760px) {
  .cylfav-fab { bottom: 76px; } /* 하단 탭바(60px) 위 */
}

/* 바텀시트 */
.cylfav-sheet {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0, 0, 0, 0.4);
}
.cylfav-sheet[hidden] { display: none; }
.cylfav-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 16px 16px 0 0;
  padding: 0 18px 18px;
  max-height: 72vh; overflow-y: auto;
}
.cylfav-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 10px;
  position: sticky; top: 0; background: #fff;
}
.cylfav-head strong { font-size: 17px; }
.cylfav-close {
  font-size: 22px; background: none; border: 0; cursor: pointer;
  min-width: 44px; min-height: 44px; color: #4e5968;
}
.cylfav-privacy {
  font-size: 12px; color: var(--mute, #8b95a1);
  margin-top: 12px; line-height: 1.5;
}

/* 목록 행 (시트·섹션 공용) */
.cylfav-row {
  display: flex; align-items: flex-start; gap: 4px;
  padding: 10px 0; border-bottom: 1px solid #f0f2f5;
}
.cylfav-row:last-child { border-bottom: 0; }
.cylfav-link { flex: 1; min-width: 0; color: inherit; }
.cylfav-link:hover { text-decoration: none; }
.cylfav-link:hover .cylfav-nm { text-decoration: underline; }
.cylfav-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.cylfav-nm { display: block; font-size: 15px; font-weight: 700; color: var(--text, #191f28); }
.cylfav-meta { display: block; font-size: 13px; color: var(--sub, #4e5968); margin-top: 2px; }
.cylfav-del {
  background: none; border: 0; color: #b0b8c1;
  font-size: 20px; cursor: pointer; padding: 4px 8px;
  min-width: 36px; min-height: 36px;
}
.cylfav-empty {
  font-size: 14px; color: var(--mute, #8b95a1);
  text-align: center; padding: 22px 0 10px; line-height: 1.6;
}

/* 이어보기 버튼 */
.cylfav-last {
  display: block; width: 100%;
  margin: 4px 0 8px; padding: 10px 12px;
  background: #eaf1fd; color: var(--blue-dark, #1b64da);
  border: 0; border-radius: 12px;
  font-size: 13.5px; font-weight: 700;
  text-align: left; cursor: pointer; font-family: inherit;
}
