@charset "utf-8";
/* ==========================================================================
   추천여행 카드 목록 — 요즘핫플(yozuum.com) item.php 의 카드 디자인을 옮겨온 것.
   ==========================================================================
   요즘핫플은 부트스트랩 5, 도장포는 4.5 라 유틸리티 클래스 문법이 다르다
   (me-2 / ms-2 / object-fit-cover 등). 그대로 붙이면 여백과 이미지 비율이 깨진다.
   그래서 유틸리티에 기대지 않고 필요한 치수·색·타이포를 여기에 직접 적었다.
   클래스 이름은 전부 rc- 로 시작해 도장포 기존 화면에 영향을 주지 않는다.

   색상은 요즘핫플 common.css 의 :root 값을 그대로 가져왔다.
     --primary #00b1ff / --trip #ff9800 / --stay #00a693 / --dish #ff00ff
   ========================================================================== */

/* theme.css 의 .col-cont 는 width:780px 로 고정돼 있다.
   우측 광고 칸이 있던 시절의 폭이라 카드가 2열까지만 들어간다.
   추천여행에서만 이 제한을 풀어 컨테이너 전체를 쓰게 한다. */
.col-cont.rc-wide {
  width: 100%;
  max-width: 100%;
}

.rc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.rc-item {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 32px;
  background-color: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.rc-card {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.rc-card:hover,
.rc-card:focus {
  text-decoration: none;
  color: inherit;
}

/* ── 이미지 영역 ───────────────────────────────────────────── */
.rc-img-box {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 26px;
  overflow: hidden;
  background-color: #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 1;
}
.rc-img-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}
.rc-card:hover .rc-img-bg {
  transform: scale(1.1);
}

/* 할인 배지 — 오른쪽 위 */
.rc-badge-discount {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(0, 177, 255, 0.7);
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 0 0 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  z-index: 10;
}
/* 가맹점 배지 — 왼쪽 아래 */
.rc-badge-vendor {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 70%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px 15px;
  border-radius: 0 16px 0 0;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 10;
}
/* 거리 배지 — 오른쪽 아래 */
.rc-badge-distance {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: #ff9800;
  color: #fff;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 20px;
  line-height: 1.4;
  z-index: 10;
}

/* ── 글 영역 ───────────────────────────────────────────────── */
.rc-info {
  padding: 16px 4px 4px;
}
.rc-info-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.rc-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #242424;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-cate {
  flex: 0 0 auto;
  margin-left: 8px;
  padding: 4px 10px;
  background-color: #00a693;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  border-radius: 12px;
  white-space: nowrap;
}
.rc-basic {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 400;
  color: #242424;
}
.rc-basic li {
  margin: 0 0 2px;
  padding: 0;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rc-basic i {
  color: #ff9800;
  margin-right: 4px;
}
.rc-notice {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #666;
  /* 두 줄까지만 보이고 넘치면 … 으로 자른다 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: 3em;
}

/* ── 무한 스크롤 ───────────────────────────────────────────── */
.rc-loading {
  padding: 30px 0;
  text-align: center;
}
.rc-loading .spinner-border {
  width: 1.75rem;
  height: 1.75rem;
}
.rc-end {
  padding: 24px 0 8px;
  text-align: center;
  font-size: 13px;
  color: #999;
}
.rc-empty {
  padding: 60px 0;
  text-align: center;
  color: #999;
}

/* ── 좁은 화면 ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .rc-list { gap: 16px; }
}
@media (max-width: 575px) {
  /* 한 칸씩. minmax 300px 로는 아주 좁은 기기에서 넘칠 수 있다 */
  .rc-list { grid-template-columns: 1fr; gap: 20px; }
  .rc-img-box { height: 180px; }
}
