/**
 * favorite.css
 * URL: /wishlist
 * 뷰: mobile/favorite.php
 */

:root {
  --wh-brand-light: #f3eeff;
  --txt: var(--wh-label);
  --txt2: var(--wh-label-3);
  --card-r: 20px;
}

/* ── r26-prop-card ── */
.r26-prop-card {
  border-radius: var(--card-r);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .05);
}

.r26-prop-card:active {
  transform: scale(0.97);
}

.r26-prop-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.r26-prop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 하트 버튼 */
.r26-heart-btn.wl-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
  transition: transform 0.15s;
}

.r26-heart-btn.wl-heart:active {
  transform: scale(0.88);
}

.r26-heart-btn.wl-heart svg {
  width: 24px;
  height: 24px;
  transition: fill 0.2s;
}

.r26-heart-btn.wl-heart svg.heart_on.d-none,
.r26-heart-btn.wl-heart svg.heart.d-none {
  display: none;
}

/* 카드 정보 */
.r26-prop-info {
  padding: 12px 14px 14px;
}

.r26-prop-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.r26-prop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.r26-prop-tag {
  font-size: 11px;
  color: var(--txt2);
  background: var(--wh-bg);
  border-radius: 20px;
  padding: 2px 5px;
}

.r26-prop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.r26-prop-loc {
  font-size: 11px;
  color: var(--txt2);
}

.r26-prop-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--txt);
}

.r26-prop-rating svg {
  fill: #f59e0b;
  width: 11px;
  height: 11px;
}

.r26-prop-price-wrap {
  margin-top: 6px;
}

.r26-prop-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--txt);
}

.r26-prop-price .unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--txt2);
}

/* 선택 모드 */
.wl-grid.select-mode .wl-card {
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), opacity 0.18s;
  will-change: transform;
}
.wl-grid.select-mode .wl-card.wl-selected {
  transform: scale(1.025);
}
.wl-grid.select-mode .wl-card.wl-selected .r26-prop-img-wrap,
.wl-grid.select-mode .wl-card.wl-selected .wl-card-img-wrap {
  box-shadow: 0 0 0 3px var(--wh-label), 0 0 0 7px rgba(99,102,241,0.13);
  transition: box-shadow 0.2s;
}

.nav.clean {
  display: none;
}

div#content {
  padding-top: 96px;
}

.wh-page-nav {
  border-bottom: 1px solid var(--wh-sep-opaque);
}

/* ── 탭 칩 ── */
.wl-tabs {
  display: flex;
  gap: 8px;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  scroll-behavior: smooth;
  padding: 0 16px;
  margin: 0 -16px;
}

.wl-tabs::-webkit-scrollbar {
  display: none;
}

.wl-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wh-label-3);
  border: 1px solid var(--wh-sep-opaque);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.wl-tab.active {
  color: #fff;
  font-weight: 700;
  background: var(--wh-label);
  border: 1px solid var(--wh-label);
}

/* ── 카운트 바 ── */
.wl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.wl-count {
  font-size: 12px;
  color: var(--txt2);
  margin-left: 5px;
}

.wl-count strong {
  color: var(--wh-label);
  font-weight: 700;
}

.filter_btn {
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 7px 5px;
  font-size: 12px;
  color: var(--wh-label-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── 그리드: 모바일 1열, 태블릿+ 2열 ── */
.wl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

@media (min-width: 640px) {
  .wl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 카드 ── */
.wl-card {
  position: relative;
  min-width: 0;
}

.wl-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  overflow: hidden;
  background: var(--wh-sep-opaque);
}

.wl-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 하트 */
.wl-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.wl-heart svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .3));
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.4);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.wl-heart.heart-popping svg {
  animation: heartPop 0.3s ease forwards;
}

.wl-heart svg.heart_on.d-none,
.wl-heart svg.heart.d-none {
  display: none;
}

/* ── 카운트 바 편집 버튼 ── */
.filter_btn.wl-bar-edit-btn {
  color: var(--wh-label-2);
  font-weight: 400;
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--wh-sep-opaque);
  border-radius: 10px;
}

/* ── 내비게이션 목록 관리 버튼 ── */
.nav-actions-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 15px;
}

.wl-nav-actions {
  display: flex;
  align-items: center;
}

.wl-nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--wh-label-2);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.wl-nav-action-btn svg {
  width: 16px;
  height: 16px;
}

/* ── 프로모 섹션 ── */
.wl-promo {
  margin-top: 36px;
  padding: 28px 16px 40px;
  text-align: center;
  border-top: 1px solid var(--wh-bg);
}

.wl-promo-icon {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.wl-promo-icon .material-symbols-outlined {
  font-size: 28px;
  color: var(--wh-label-3);
  font-variation-settings: 'FILL' 0, 'wght' 300;
}

.wl-promo-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--wh-label);
  margin: 0 0 8px;
}

.wl-promo-desc {
  font-size: 13px;
  color: var(--wh-label-3);
  margin: 0 0 22px;
  line-height: 1.6;
}

.wl-promo-btn {
  display: inline-block;
  border: 1.5px solid var(--wh-sep-opaque);
  border-radius: 30px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wh-label);
  text-decoration: none;
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}

.wl-promo-btn:active {
  background: var(--wh-bg);
}