/**
 * travel.css
 * URL: /travelling/my_trips
 * 뷰: mobile/travel.php
 */

:root {
  --wh-brand-light: #f3eeff;
}

.nav.clean {
  display: none;
}

#content.tl-page {
  padding: 0 !important;
}

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

/* ── 연도 구분선 (숨김 처리 유지) ── */
.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);
  color: #fff;
}

.tc-badge.confirmed {
  background: var(--wh-bg);
  color: var(--wh-brand);
}

.tc-badge.done {
  background: var(--wh-bg);
  color: var(--wh-label-2);
}

.tc-badge.pending {
  background: var(--wh-bg);
  color: var(--wh-label-2);
}

.tc-badge.cancelled {
  background: var(--wh-bg);
  color: var(--wh-label-4);
}

.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: 700;
  color: var(--wh-label);
  margin: 0 0 5px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

/* 주소 */
.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 {
  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-review-btn,
.tc-review-done-btn,
.tc-refund-btn,
.tc-payment-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  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-label);
  color: #fff !important;
  border: none;
  font-size: 15px;
  font-weight: 700;
}

/* 보조 버튼 — 모두 동일한 아웃라인 스타일 */
.tc-review-btn,
.tc-review-done-btn,
.tc-refund-btn,
.tc-payment-btn {
  background: #fff;
  color: var(--wh-label);
  border: 1.5px solid var(--wh-sep-opaque);
}

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

.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: #fff;
  border: 1px solid var(--wh-sep-opaque);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wh-label);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tl-promo-chip:active {
  background: var(--wh-bg);
}

.tl-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wh-brand, #671175);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 18px rgba(103, 17, 117, .18);
}

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

.tl-promo-btn:active {
  opacity: 0.88;
}

/* ── 환불 팝업 ── */
.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;
}
