/**
 * _wh-bridge.css
 * 위홈 CSS 변수 브릿지
 * - style_common.css의 기존 변수를 재매핑
 * - 페이지별 CSS에서 공통으로 사용하는 디자인 토큰 정의
 * - 로드 위치: m_header.php에서 layout.css 뒤에 포함
 */



:root {
  /* ─────────────────────────────────────────────
   * style_common.css의 기존 변수를 내 네이밍으로 재매핑
   * ───────────────────────────────────────────── */
  --wh: var(--wh-brand, #671175);
  --wh-purple: var(--wh-brand, #671175);
  --wh-grad: linear-gradient(135deg, var(--wh-brand, #671175) 0%, #9333ea 100%);
  --wh-light: var(--wh-brand-tint, rgba(103, 17, 117, 0.08));

  --nav-h: var(--nav-clean-height, 50px);
  /* 기존 변수 재매핑 */
  --bar-h: var(--bottom-naverbar-height, 66px);

  /* ─────────────────────────────────────────────
   * 시맨틱 컬러 토큰 (페이지별 CSS에서 사용)
   * ───────────────────────────────────────────── */
  --txt: var(--wh-label);
  --txt2: var(--wh-label-3);
  --txt3: var(--wh-label-4);
  --border: var(--wh-sep-opaque);
  --bg: #f7f8fa;
  --card: #ffffff;

  /* ─────────────────────────────────────────────
   * 상태 컬러 토큰
   * ───────────────────────────────────────────── */
  --color-pending: #ff9800;
  --color-accepted: #10b981;
  --color-declined: #ef4444;
  --color-orange: #f97316;

  /* ─────────────────────────────────────────────
   * 레이아웃 / 컴포넌트 토큰
   * ───────────────────────────────────────────── */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);

  /* 카드 컴포넌트 공통 — 여기 하나만 바꾸면 acc-card, 알림설정 패널 등 전체 반영 */
  --acc-card-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
  --acc-card-radius: 20px;

  --gap-sm: 8px;
  --gap: 12px;
  --gap-lg: 20px;

  --padding-page: 14px;

  /* ─────────────────────────────────────────────
   * 숙소 카드 타이포그래피 토큰
   * 사용처: r26-prop-card (메인/위시리스트/검색)
   * ───────────────────────────────────────────── */
  --card-fs-title: 14px;
  /* 숙소명 */
  --card-fs-tag: 10px;
  /* 편의시설 태그 칩 */
  --card-fs-loc: 12px;
  /* 위치 */
  --card-fs-rating: 12px;
  /* 평점 */
  --card-fs-price: 15px;
  /* 가격 숫자 */
  --card-fs-unit: 12px;
  /* 가격 단위 (/박) */
  --card-fs-badge: 11px;
  /* 슈퍼호스트 등 뱃지 */
}

/* PC — 768px 이상 */
@media (min-width: 768px) {
  :root {
    --card-fs-title: 15px;
    --card-fs-tag: 11px;
    --card-fs-loc: 13px;
    --card-fs-rating: 13px;
    --card-fs-price: 16px;
    --card-fs-unit: 12px;
    --card-fs-badge: 11px;
  }
}

/* 소형 모바일 — 375px 이하 */
@media (max-width: 375px) {
  :root {
    --card-fs-title: 13px;
    --card-fs-tag: 9px;
    --card-fs-loc: 11px;
    --card-fs-rating: 11px;
    --card-fs-price: 14px;
    --card-fs-unit: 11px;
    --card-fs-badge: 10px;
  }
}

/* ══════════════════════════════════════════════════════════
 * 탭 바 (공통 컴포넌트: .wh-tabs / .wh-tab)
 * 사용처: account_notices, travel, 기타 탭 UI 전체
 * ══════════════════════════════════════════════════════════ */

.wh-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  margin-top: 76px;
}

.wh-tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  background: none;
  border: none;
  color: #8e8e93;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Pretendard', -apple-system, sans-serif;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
}

.wh-tab.active {
  color: var(--wh-brand, #671175);
  font-weight: 700;
  border-bottom-color: var(--wh-brand, #671175);
}

/* ══════════════════════════════════════════════════════════
 * 비로그인 유도 섹션 (공통 컴포넌트: auth_placeholder.php)
 * ══════════════════════════════════════════════════════════ */

/* 래퍼 */
.wh-auth-placeholder {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* 아이콘 */
.wh-auth-icon {
  color: #d0d0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.wh-auth-icon .material-symbols-outlined {
  font-size: 56px;
}

/* 제목 */
.wh-auth-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--txt, #111827);
  margin: 0;
  line-height: 1.3;
}

/* 설명 */
.wh-auth-desc {
  font-size: 14px;
  color: var(--txt2, #6b7280);
  margin: 0;
  line-height: 1.6;
}

/* 로그인 버튼 */
.wh-auth-login-btn {
  margin-top: 6px;
  background: var(--wh-brand, #671175);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.wh-auth-login-btn:hover,
.wh-auth-login-btn:focus,
.wh-auth-login-btn:active {
  color: #fff;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════
 * 빈 상태 / 예약 유도 섹션 (공통 컴포넌트: .wh-empty-state)
 * 사용처: inbox (메시지 없음), travel (예약 유도)
 * ══════════════════════════════════════════════════════════ */

.wh-empty-state {
  margin: 60px 0 8px;
  padding: 28px 20px 24px;
  text-align: center;
}

.wh-empty-icon {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  line-height: 1;
  color: var(--wh-label-3);
  font-variation-settings: 'FILL' 0, 'wght' 300;
}

.wh-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--wh-label);
  margin: 0 0 6px;
  line-height: 1.35;
}

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