/* ─────────────────────────────────────────────
   K-POP Stay Busan  ·  /k-popstay-busan
   리디자인: Deep Purple + Lavender + Gold/White
───────────────────────────────────────────── */

:root {
  --kps-purple-deep:    #2d0a4e;
  --kps-purple-mid:     #4a1272;
  --kps-purple-brand:   #6b21a8;
  --kps-purple-light:   #9333ea;
  --kps-lavender:       #e9d5ff;
  --kps-lavender-soft:  #f3e8ff;
  --kps-gold:           #f5c842;
  --kps-gold-light:     #fde68a;
  --kps-white:          #ffffff;
}

#wehome-no-history-logo { display: none !important; }

/* ─── kps 전용 Nav 바 ─── */

.kps-nav-wrap {
  --wh-nav-h: 60px;
  position: sticky;
  top: 0;
  z-index: 500;
}

/* GNB 배너: 얇고 깔끔한 공지 스타일 */
.kps-nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--kps-purple-deep) 0%, var(--kps-purple-mid) 100%);
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 좌·우 아이콘 버튼 공통 */
.kps-nav-icon-btn {
  position: absolute;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
  flex-shrink: 0;
}

/* 뒤로가기: 왼쪽 고정 */
a.kps-nav-icon-btn { left: 12px; }

.kps-nav-icon-btn:active {
  background: rgba(255, 255, 255, 0.22);
}

/* 언어 버튼 wrapper: 오른쪽 고정 */
.kps-nav-lang-wrap {
  border-radius: 50%;
  position: absolute;
  right: 12px;
}

/* 중앙 CTA 링크 */
.kps-nav-cta {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 96px); /* 좌우 아이콘 버튼 영역 확보 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.1) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  border-bottom-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.kps-nav-cta:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.97) translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.15);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 480px) {
  .kps-nav-cta:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.14) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

/* 1줄: 이벤트 문구 */
.kps-nav-line1 {
  display: block;
  width: 100%;
  font-size: 10px;
  font-weight: 700;
  color: var(--kps-gold);
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-align: center;
  word-break: keep-all;
}

/* 2줄: 타이틀 */
.kps-nav-line2 {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 400px) {
  .kps-nav-line1 { font-size: 10.5px; }
  .kps-nav-line2 { font-size: 14px; }
}

/* ─── 페이지 베이스 ───────────────────────── */
.kps-page {
  min-height: 100dvh;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: calc(var(--tab-h, 72px) + 24px);
  background: #f5f5f7;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: #1d1d1f;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .kps-page { padding-bottom: 60px; }
}

.kps-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ─── 히어로 ─────────────────────────────── */
.kps-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg,
    #1a0533 0%,
    #2d0a4e 35%,
    #4a1272 65%,
    #3b0764 100%
  );
  padding: calc(var(--wh-nav-h, 60px) + 20px) 0 44px;
  min-height: 220px;
}

@media (min-width: 768px) {
  .kps-hero { padding: calc(var(--wh-nav-h, 60px) + 32px) 0 64px; min-height: 280px; }
}

/* 배경 레이어들 */
.kps-hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* 배경 이미지: 부산 바다 분위기를 연상시키는 추상 오버레이 */
.kps-hero-img-overlay {
  position: absolute;
  inset: 0;
  /* 감성적 배경: 빛이 반사되는 수면 느낌의 방사형 그라데이션 */
  background:
    radial-gradient(ellipse 80% 60% at 75% 100%, rgba(147, 51, 234, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(196, 148, 255, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 90% 20%, rgba(245, 200, 66, 0.06) 0%, transparent 50%);
}

/* 그라데이션 오버레이: 텍스트 가독성 확보 */
.kps-hero-grad-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(29, 5, 51, 0.5) 0%,
    rgba(29, 5, 51, 0.1) 60%,
    transparent 100%
  );
}

.kps-hero-wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 80px;
}

/* 히어로 콘텐츠 */
.kps-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .kps-hero-copy { padding: 0 40px; }
}

/* 정부 인증 배지 */
.kps-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.15);
  border: 1px solid rgba(245, 200, 66, 0.35);
  color: var(--kps-gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  word-break: keep-all;
  line-height: 1.4;
}

.kps-trust-badge svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  color: var(--kps-gold);
}

/* H1 타이틀: 임팩트 있게 */
.kps-hero h1 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.03em;
  word-break: keep-all;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 400px) {
  .kps-hero h1 { font-size: 28px; }
}

@media (min-width: 768px) {
  .kps-hero h1 { font-size: 36px; line-height: 1.13; }
}

@media (max-width: 359px) {
  .kps-hero h1 { font-size: 22px; }
}

/* 할인 강조 텍스트 */
.kps-hero-discount {
  display: inline;
  color: var(--kps-gold);
  font-weight: 900;
  text-shadow: 0 0 20px rgba(245, 200, 66, 0.35);
}

/* desc는 trust badge로 대체됨 — 숨김 처리 시 fallback */
.kps-hero-desc {
  display: none;
}

.kps-hero-actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 지도 버튼: 강한 CTA (화이트 고형 버튼) */
.kps-hero-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #ffffff;
  border: none;
  color: var(--kps-purple-brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.kps-hero-map-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.kps-hero-map-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (min-width: 768px) {
  .kps-hero-map-btn:hover {
    background: var(--kps-lavender-soft);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }
}

/* visit btn — 현재 미사용, 스타일 보존 */
.kps-hero-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid transparent;
  color: #761183;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.kps-hero-visit-btn:active { background: #fff; }
.kps-hero-visit-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (min-width: 768px) {
  .kps-hero-visit-btn:hover { background: #fff; }
}

/* kicker — 현재 미사용, 스타일 보존 */
.kps-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kps-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.kps-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
}

.kps-hero-tag svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ─── 이벤트 배너 ─────────────────────────── */
.kps-event-banner {
  background: linear-gradient(170deg, #1a0533 0%, var(--kps-purple-deep) 40%, #1e0640 100%);
  position: relative;
  overflow: hidden;
}

/* 배경 장식: 은은한 빛 번짐 */
.kps-event-bg-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 100% 50%, rgba(107, 33, 168, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 0%, rgba(196, 148, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.kps-event-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.kps-event-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (min-width: 560px) {
  .kps-event-banner-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.kps-event-banner-left { flex: 1; min-width: 0; }
.kps-event-br { display: none; }

.kps-event-badge {
  display: inline-flex;
  align-items: center;
  background: var(--kps-gold);
  color: var(--kps-purple-deep);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.kps-event-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin-bottom: 8px;
  word-break: keep-all;
}

.kps-event-desc {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

/* ─── 쿠폰 카드 컴포넌트 ─── */
.kps-coupon-card {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  overflow: visible;
  /* 쿠폰 좌우 노치 처리를 위해 */
}

@media (min-width: 560px) {
  .kps-coupon-card { width: 200px; }
}

/* 쿠폰 노치 (물린 반원) */
.kps-coupon-notch {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(170deg, #1a0533, #1e0640);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
  z-index: 2;
}

.kps-coupon-notch-left  { left: -8px; border-left-color: transparent; }
.kps-coupon-notch-right { right: -8px; border-right-color: transparent; }

/* 쿠폰 상단 영역 */
.kps-coupon-card-top {
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kps-coupon-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
}

/* 할인율 배지 */
.kps-coupon-discount-badge {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--kps-gold) 0%, #f59e0b 100%);
  color: var(--kps-purple-deep);
  font-size: 15px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(245, 200, 66, 0.35);
}

/* 점선 구분선 */
.kps-coupon-divider {
  height: 1px;
  margin: 0 18px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.2) 0px,
    rgba(255, 255, 255, 0.2) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* 쿠폰 하단 영역 */
.kps-coupon-card-bottom {
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kps-coupon-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kps-coupon-code-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kps-coupon-code {
  font-size: 20px;
  font-weight: 900;
  color: var(--kps-gold);
  letter-spacing: 0.12em;
  text-shadow: 0 0 16px rgba(245, 200, 66, 0.3);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* 복사 버튼: 강조된 CTA */
.kps-coupon-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.kps-coupon-copy-btn:active {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0.98);
}

@media (min-width: 480px) {
  .kps-coupon-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
  }
}

.kps-coupon-copy-btn.copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.kps-coupon-copy-text { flex: 1; text-align: center; }

/* ─── 카테고리 탭 ─────────────────────── */
.kps-tabs-wrap {
  position: sticky;
  top: var(--wh-nav-h, 56px);
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.kps-tabs {
  display: flex;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

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

.kps-tab {
  flex-shrink: 0;
  height: 46px;
  padding: 0 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #8e8e93;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: -0.01em;
}

.kps-tab.active {
  color: var(--kps-purple-brand);
  border-bottom-color: var(--kps-purple-brand);
  font-weight: 700;
}

/* ─── 툴바 ─────────────────────────────── */
.kps-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 20px;
  box-sizing: border-box;
  min-height: 48px;
  line-height: 1;
}

.kps-count {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #48484a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.kps-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 34px;
}

/* ─── 툴바 — 필터 버튼 ───────────────── */
.kps-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.kps-filter-btn:active {
  background: #f5eef8;
  border-color: rgba(118, 17, 131, 0.3);
}

.kps-filter-btn svg { width: 14px; height: 14px; fill: #48484a; }

.kps-filter-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #761183;
  border: 1.5px solid #fff;
}

.kps-all-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 1px;
  font-size: 13px;
  font-weight: 700;
  color: #761183;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}

.kps-all-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── 카테고리 섹션 ───────────────────── */
.kps-category-section { max-width: 720px; margin: 0 auto; }
.kps-category-section.kps-hidden { display: none; }

.kps-category-header {
  padding: 20px 20px 12px;
  box-sizing: border-box;
}

.kps-category-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.kps-category-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--kps-cat-color, #761183);
  flex-shrink: 0;
}

.kps-category-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.kps-category-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--kps-cat-color, #761183);
  background: color-mix(in srgb, var(--kps-cat-color, #761183) 10%, transparent);
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.kps-category-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: #6e6e73;
  line-height: 1.55;
  word-break: keep-all;
  letter-spacing: -0.01em;
}

/* ─── 숙소 그리드 ─────────────────────── */
.kps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .kps-grid { gap: 14px; padding: 0 16px; }
}

@media (min-width: 640px) {
  .kps-grid { grid-template-columns: repeat(3, 1fr); padding: 0 20px; }
}

@media (max-width: 359px) {
  .kps-grid { grid-template-columns: 1fr; }
}

/* ─── 숙소 카드 ──────────────────────── */
.kps-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (min-width: 768px) {
  .kps-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(24, 19, 29, 0.1);
  }
}

.kps-card-link { display: block; text-decoration: none; color: inherit; }

.kps-card-img-wrap {
  position: relative;
  width: 100%; aspect-ratio: 4 / 3;
  background: #e5e5ea; overflow: hidden;
}

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

.kps-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-wrap: wrap; gap: 4px;
}

.kps-badge {
  padding: 3px 7px; border-radius: 6px;
  font-size: 10px; font-weight: 700;
  line-height: 1; color: #fff; white-space: nowrap;
  backdrop-filter: blur(4px);
}

.kps-badge-sup { background: rgba(118, 17, 131, 0.85); }
.kps-badge-pop { background: rgba(234, 88, 12, 0.85); }
.kps-badge-ins { background: rgba(2, 132, 199, 0.85); }

.kps-heart {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  border: none; border-radius: 50%;
  cursor: pointer; padding: 0;
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.kps-heart .heart-fill { display: none; }
.kps-heart .heart-line { display: block; color: #1d1d1f; width: 15px; height: 15px; }
.kps-heart.liked .heart-fill { display: block; color: #ef4444; width: 15px; height: 15px; }
.kps-heart.liked .heart-line { display: none; }

@keyframes kpsHeartBeat {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.kps-heart.heart-animate { animation: kpsHeartBeat 0.35s cubic-bezier(.36,.07,.19,.97); }

.kps-card-body { padding: 11px 12px 14px; }

@media (min-width: 768px) {
  .kps-card-body { padding: 13px 14px 16px; }
}

.kps-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .kps-card-title { font-size: 14px; }
}

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

.kps-card-tag {
  padding: 2px 7px; border-radius: 5px;
  background: #f3ebf6; color: #761183;
  font-size: 10px; font-weight: 600;
  letter-spacing: -0.01em;
}

.kps-card-meta {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 4px; margin-bottom: 6px;
}

.kps-card-loc {
  display: inline-flex; align-items: center;
  gap: 3px; font-size: 11px; font-weight: 500;
  color: #6e6e73; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  max-width: 65%;
}

.kps-card-loc svg { width: 11px; height: 11px; flex-shrink: 0; color: #6e6e73; }

.kps-card-rating {
  display: inline-flex; align-items: center;
  gap: 2px; font-size: 11px; font-weight: 700;
  color: #1d1d1f; white-space: nowrap; flex-shrink: 0;
}

.kps-card-rating svg { width: 11px; height: 11px; color: #f59e0b; fill: #f59e0b; }
.kps-card-rev { color: #8e8e93; font-weight: 500; }

.kps-card-price {
  font-size: 14px; font-weight: 800;
  color: #1d1d1f; line-height: 1;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .kps-card-price { font-size: 15px; }
}

.kps-card-price-unit { font-size: 11px; font-weight: 500; color: #6e6e73; }

/* ─── 더보기 버튼 ─────────────────────── */
.kps-loadmore-wrap {
  display: flex; justify-content: center;
  max-width: 720px; margin: 0 auto;
  padding: 20px 20px 8px;
}

.kps-loadmore-btn {
  width: 100%; max-width: 360px;
  height: 48px; border: 1.5px solid #761183;
  border-radius: 14px; background: #fff;
  color: #761183; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background 0.12s, color 0.12s;
  letter-spacing: -0.02em;
}

.kps-loadmore-btn:hover { background: #761183; color: #fff; }
.kps-loadmore-btn:disabled { opacity: 0.45; cursor: default; }

/* ─── 안내 카드 ──────────────────────── */
.kps-info-card {
  max-width: 720px; margin: 20px auto 0;
  padding: 24px 20px; background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .kps-info-card { margin-left: 16px; margin-right: 16px; }
}

@media (min-width: 1240px) {
  .kps-info-card { margin-left: auto; margin-right: auto; }
}

.kps-info-card h2 {
  margin: 0 0 10px;
  font-size: 16px; font-weight: 700;
  color: #1d1d1f; line-height: 1.3;
  letter-spacing: -0.02em;
}

.kps-info-card p {
  margin: 0 0 14px; font-size: 14px;
  font-weight: 400; color: #48484a;
  line-height: 1.65; word-break: keep-all;
}

.kps-info-link {
  display: inline-block; font-size: 14px;
  font-weight: 700; color: #761183;
  text-decoration: none; letter-spacing: -0.01em;
}

/* ─── 빈 상태 ────────────────────────── */
.kps-empty {
  display: flex; flex-direction: column;
  align-items: center; padding: 64px 20px;
  gap: 14px; text-align: center; color: #8e8e93;
}

.kps-empty svg { width: 44px; height: 44px; color: #c7c7cc; fill: #c7c7cc; }
.kps-empty p { margin: 0; font-size: 15px; font-weight: 500; }

.kps-empty-link {
  display: inline-flex; align-items: center;
  justify-content: center; height: 46px;
  padding: 0 24px; border-radius: 14px;
  background: #761183; color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none;
  letter-spacing: -0.01em;
}

/* ─── 필터 오버레이/시트 ───────────────── */
#kps-filter-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4); z-index: 9998;
}

#kps-filter-sheet {
  display: none; position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 9999; background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.14);
  flex-direction: column; width: 100%;
  max-width: 480px; max-height: 85dvh;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.kps-filter-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.1);
  flex-shrink: 0;
}

.kps-filter-header > button:first-child {
  font-size: 14px; font-weight: 500; color: #761183;
  background: none; border: none; cursor: pointer;
  padding: 4px 0; min-width: 40px; font-family: inherit;
}

.kps-filter-header > span {
  font-size: 17px; font-weight: 700; color: #1d1d1f;
  letter-spacing: -0.03em;
}

.kps-filter-close {
  width: 32px; height: 32px;
  background: rgba(120, 120, 128, 0.1);
  border: none; cursor: pointer;
  display: flex; align-items: center;
  justify-content: center; border-radius: 50%;
}

.kps-filter-close svg { width: 18px; height: 18px; color: #1d1d1f; }

.kps-filter-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.kps-filter-body::-webkit-scrollbar { display: none; }

.kps-filter-section {
  padding: 22px 20px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.07);
}

.kps-filter-section h3 {
  margin: 0 0 14px; font-size: 15px;
  font-weight: 700; color: #1d1d1f;
  letter-spacing: -0.02em;
}

.kps-price-inputs { display: flex; align-items: center; gap: 10px; }

.kps-price-box {
  flex: 1; display: flex; align-items: center;
  gap: 5px; border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px; padding: 11px 14px;
  background: #fafafc; transition: border-color 0.15s;
}

.kps-price-box:focus-within { border-color: #761183; }
.kps-price-sym { font-size: 14px; color: rgba(0,0,0,0.4); font-weight: 500; flex-shrink: 0; }

.kps-price-box input {
  flex: 1; border: none; outline: none;
  font-size: 14px; font-weight: 700; color: #1d1d1f;
  background: transparent; min-width: 0; width: 100%;
  font-family: inherit;
}

.kps-price-box input::-webkit-inner-spin-button,
.kps-price-box input::-webkit-outer-spin-button { -webkit-appearance: none; }

.kps-price-dash { font-size: 16px; color: rgba(0,0,0,0.25); flex-shrink: 0; }

.kps-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.kps-f-chip {
  display: inline-flex; align-items: center;
  gap: 6px; padding: 9px 14px; border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fafafc; font-size: 13px; font-weight: 500;
  color: rgba(0, 0, 0, 0.75); cursor: pointer;
  white-space: nowrap; font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.01em;
}

.kps-f-chip svg { width: 15px; height: 15px; flex-shrink: 0; color: rgba(0,0,0,0.4); transition: color 0.15s; }
.kps-f-chip:active { background: #ededf2; }

.kps-f-chip.active {
  border-color: #761183;
  background: rgba(118, 17, 131, 0.07);
  color: #761183; font-weight: 600;
}

.kps-f-chip.active svg { color: #761183; }

.kps-filter-footer {
  flex-shrink: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 0.5px solid rgba(60, 60, 67, 0.1);
  background: #fff;
}

.kps-filter-footer button {
  width: 100%; background: #761183; color: #fff;
  border: none; border-radius: 14px; padding: 16px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background 0.12s;
  letter-spacing: -0.02em;
}

.kps-filter-footer button:active { background: #5a0c64; }
