@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block");
@import url('../wh-tokens.css');
/**
 * travel.css
 * URL: /travelling/my_trips
 * SSOT: wh-tokens.css · _wh-bridge.css (chip tabs)
 * v20260703a
 */

html:has(#content.tl-page),
html:has(#content.tl-page) body,
html:has(#content.tl-page) body#body {
  background: var(--wh-bg, #f2f4f6) !important;
}

.nav.clean {
  display: none;
}

#content.tl-page {
  padding: 0 !important;
  background: var(--wh-bg, #f2f4f6) !important;
}

/* nav가 #content 밖(형제) — inbox.css 와 동일한 패턴 */
body:has(.wh-page-nav-wrap + #content.tl-page) .wh-page-nav-wrap {
  margin-bottom: calc(-1 * var(--wh-page-nav-h, 76px));
}

body:has(.wh-page-nav-wrap + #content.tl-page) .wh-page-nav-wrap .wh-page-nav {
  box-sizing: border-box;
  min-height: var(--wh-page-nav-h, 76px);
  padding-top: 16px;
  padding-bottom: 16px;
}

body:has(.wh-page-nav-wrap + #content.tl-page) #content.tl-page .wh-tabs {
  background: var(--wh-bg, #f2f4f6);
}

.tl-body {
  padding: 16px 16px 100px;
}

/* ── 앱 리뷰 포인트 배너 ── */
.tl-app-review-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--wh-card, #fff);
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: var(--wh-radius-md, 16px);
  text-decoration: none;
  box-shadow: var(--wh-shadow, 0 2px 8px rgba(0, 0, 0, 0.03));
}

.tl-app-review-banner__icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--wh-brand-tint, #F3EEFA);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-app-review-banner__icon {
  font-size: 22px;
  color: var(--wh-brand, #681DC7);
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.tl-app-review-banner__text {
  flex: 1;
  min-width: 0;
}

.tl-app-review-banner__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--wh-tx, #191f28);
}

.tl-app-review-banner__desc {
  display: block;
  font-size: 12px;
  color: var(--wh-tx2, #4e5968);
  margin-top: 2px;
}

.tl-app-review-banner__cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--wh-brand, #681DC7);
  flex-shrink: 0;
}

.tl-app-review-banner:hover,
.tl-app-review-banner:focus,
.tl-app-review-banner:active {
  text-decoration: none;
}

.tl-feature-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--wh-brand-tint, #F3EEFA);
  border: 1px solid var(--wh-info-bd, #D9CCF0);
  border-radius: var(--wh-radius-md, 16px);
}
.tl-feature-banner[hidden] {
  display: none !important;
}
.tl-feature-banner__icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-feature-banner__icon {
  font-size: 22px;
  color: var(--wh-brand, #681DC7);
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}
.tl-feature-banner__text {
  flex: 1;
  min-width: 0;
}
.tl-feature-banner__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--wh-tx, #191f28);
  letter-spacing: -0.02em;
}
.tl-feature-banner__desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--wh-tx2, #4e5968);
  line-height: 1.45;
}
.tl-feature-banner__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wh-tx3, #8b95a1);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

/* ── 연도 구분선 (숨김 처리 유지) ── */
.year-line {
  display: none;
}

/* ── 여행 카드 ── */
.trip-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .05);
  margin-bottom: 16px;
}

/* 카드 이미지 */
.tc-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--wh-sep-opaque);
  overflow: hidden;
}

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

/* 하트 버튼 */
@keyframes tcHeartBeat {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.45);
  }

  60% {
    transform: scale(0.88);
  }

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

.tc-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35));
  -webkit-tap-highlight-color: transparent;
}

.tc-heart-btn svg {
  width: 26px;
  height: 26px;
  fill: rgba(255, 255, 255, .85);
  transition: fill 0.2s;
}

.tc-heart-btn.liked svg {
  fill: #ff3b30;
  filter: drop-shadow(0 1px 2px rgba(255, 59, 48, .4));
}

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

.tc-heart-btn.heart-animate {
  animation: tcHeartBeat 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 카드 본문 */
.tc-body {
  padding: 16px 18px 18px;
}

/* 날짜 + 배지 행 */
.tc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tc-meta-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--wh-label-3);
}

.tc-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 배지 — 색 최소화 */
.tc-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.tc-badge.active {
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  border: 1px solid var(--wh-info-bd, #D9CCF0);
}

.tc-badge.confirmed {
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
}

.tc-badge.done {
  background: var(--wh-bg, #f2f4f6);
  color: var(--wh-tx2, #4e5968);
}

.tc-badge.pending {
  background: var(--wh-warn-bg, #fffbeb);
  color: var(--wh-warn-tx, #92400e);
  border: 1px solid var(--wh-warn-bd, #fde68a);
}

.tc-badge.payment-pending {
  background: var(--wh-info-bg, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  border: 1px solid var(--wh-info-bd, #D9CCF0);
}

.tc-badge.cancelled {
  background: var(--wh-bg, #f2f4f6);
  color: var(--wh-tx3, #8b95a1);
}

.tc-receipt-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #fff;
  color: var(--wh-label-2);
  border: 1px solid var(--wh-sep-opaque);
  text-decoration: none;
}

/* 숙소명 */
.tc-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--wh-tx, #191f28);
  margin: 0 0 5px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.tc-status-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--wh-tx2, #4e5968);
  margin: 0 0 8px;
  padding: 10px 12px;
  background: var(--wh-surface, #f4f5f7);
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: var(--wh-radius-sm, 16px);
}

/* 주소 */
.tc-addr {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--wh-label-3);
  margin-bottom: 0;
}

.tc-addr svg {
  width: 13px;
  height: 13px;
  fill: var(--wh-label-4);
  flex-shrink: 0;
}

/* 구분선 */
.tc-divider {
  border: none;
  border-top: 1px solid var(--wh-bg);
  margin: 13px 0;
}

/* 체크인/아웃 두 칼럼 */
.tc-dates-wrap {
  position: relative;
}
.tc-inline-change {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tc-inline-change--row {
  position: static;
  margin-left: auto;
  flex-shrink: 0;
}
.tc-guests-text {
  flex: 1;
  min-width: 0;
}
.tc-dates {
  display: flex;
}

.tc-date-col {
  flex: 1;
}

.tc-date-col:first-child {
  border-right: 1px solid var(--wh-bg);
  margin-right: 18px;
  padding-right: 18px;
}

.tc-date-col .dl {
  font-size: 11px;
  color: var(--wh-label-4);
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tc-date-col .dv {
  font-size: 14px;
  font-weight: 700;
  color: var(--wh-label);
  margin-bottom: 2px;
  letter-spacing: -0.2px;
}

.tc-date-col .dt {
  font-size: 11px;
  color: var(--wh-label-4);
}

/* 게스트 */
.tc-guests {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--wh-label-3);
}

.tc-guests svg {
  width: 15px;
  height: 15px;
  fill: var(--wh-label-4);
}

.tc-guests strong {
  color: var(--wh-label);
  font-weight: 600;
}

/* 액션 버튼 영역 */
.tc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

/* 기본 버튼 공통 */
.tc-detail-btn,
.tc-change-btn,
.tc-review-btn,
.tc-review-done-btn,
.tc-refund-btn,
.tc-payment-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--wh-radius-btn, 18px);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tc-detail-btn {
  background: var(--wh-brand, #681DC7);
  color: #fff !important;
  border: none;
  font-size: 15px;
  font-weight: 700;
}

.tc-change-btn,
.tc-review-btn,
.tc-review-done-btn,
.tc-refund-btn,
.tc-payment-btn {
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  border: 1px solid var(--wh-info-bd, #D9CCF0);
}

.tc-actions--with-change {
  gap: 8px;
}

.tc-review-dday {
  font-size: 12px;
  font-weight: 600;
  color: var(--wh-tx3, #8b95a1);
  margin-left: 6px;
}

.tc-review-expired {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--wh-radius-btn, 18px);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--wh-tx3, #8b95a1);
  background: var(--wh-card, #fff);
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
}

/* 빈 상태 */
.tl-nodata {
  background: var(--wh-card, #fff);
  border-radius: var(--wh-radius-md, 20px);
  padding: 48px 20px;
  text-align: center;
  color: var(--wh-tx2, #4e5968);
  font-size: 14px;
  margin: 14px 0;
  box-shadow: var(--wh-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
}

.tl-nodata a {
  color: var(--wh-brand);
  font-weight: 600;
}

/* ── 추가 예약 유도 프로모션 (공통 .wh-empty-state 확장) ── */
.tl-promo-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tl-promo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--wh-card, #fff);
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: var(--wh-radius-pill, 999px);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wh-tx, #191f28);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tl-promo-chip:active {
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  border-color: var(--wh-info-bd, #D9CCF0);
}

.tl-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wh-brand, #681DC7);
  color: #fff;
  border: none;
  border-radius: var(--wh-radius-btn, 18px);
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tl-promo-btn:hover,
.tl-promo-btn:focus,
.tl-promo-btn:visited,
.tl-promo-btn:active {
  background: var(--wh-brand-hover, #5416A3);
  color: #fff;
  text-decoration: none;
}

/* ── 환불 팝업 ── */
.refund-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 9999;
}

.refund-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 20px;
  z-index: 10000;
  padding: 24px 24px 28px;
  width: min(380px, calc(100vw - 32px));
}

.refund-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.refund-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--wh-label);
}

.refund-close {
  background: var(--wh-bg);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--wh-label-2);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refund-table {
  display: flex;
  flex-direction: column;
}

.refund-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--wh-bg);
  font-size: 14px;
}

.refund-row:last-child {
  border-bottom: none;
}

.refund-label {
  color: var(--wh-label-3);
}

.refund-value {
  text-align: right;
  font-weight: 500;
  color: var(--wh-label);
}

.refund-highlight {
  color: var(--wh-brand);
  font-weight: 700;
}
