/**
 * 엔스타일투어 리뉴얼 - 맞춤여행 (/bespoke/)
 * base.css 다음에 로드
 * 테마: body[data-region="bespoke"] (딥 플럼 + 라벤더 그레이, base.css 토큰)
 * 폼 / 표 / 페이징 / 모달 / 배지는 base.css 공통 컴포넌트 사용
 */

/* ==========================================================
   1. 소개 (목록 상단)
   ========================================================== */
.bespoke-hero { background: var(--region-sub); }

.bespoke-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem 4rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.bespoke-eyebrow {
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: var(--region);
}

.bespoke-heading { font-size: 2rem; font-weight: 800; letter-spacing: -1px; line-height: 1.3; }
.bespoke-lead { max-width: 640px; margin-top: 0.9rem; font-size: 0.98rem; line-height: 1.8; color: var(--text-secondary); }

.bespoke-cta-box { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.bespoke-cta-note { font-size: 0.8rem; color: var(--text-tertiary); }

/* 맞춤여행 유형 */
.bespoke-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.bespoke-point {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--region-sub-deep);
  background: rgba(255, 255, 255, 0.7);
}

.bespoke-point .ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--region);
  color: var(--white);
}

.bespoke-point .ico svg { width: 21px; height: 21px; }
.bespoke-point strong { display: block; font-size: 0.95rem; font-weight: 800; }
.bespoke-point span { display: block; margin-top: 0.1rem; font-size: 0.78rem; color: var(--text-tertiary); }

/* ==========================================================
   2. 신청 목록
   ========================================================== */
.bespoke-list .col-date { width: 130px; }
.bespoke-list .col-concept { width: 22%; }
.bespoke-list .col-name { width: 130px; }
.bespoke-list .col-stat { width: 140px; }

.bespoke-list-note { margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-tertiary); text-align: center; }

/* ==========================================================
   3. 신청서 / 신청 내용 공통 레이아웃
   ========================================================== */
.bespoke-form-section { background: var(--region-sub); }
.bespoke-form-wrap { max-width: 1000px; margin: 0 auto; }
.bespoke-form-head { margin-bottom: 2rem; }
.bespoke-form-head .bespoke-lead { margin-top: 0.6rem; }

/* 여행인원 (성인 / 아동) */
.count-fields { gap: 0.75rem 1.75rem; }
.count-field { display: inline-flex; align-items: center; gap: 0.6rem; }
.count-field label { font-size: 0.88rem; color: var(--text-primary); }
.count-note { font-size: 0.8rem; color: var(--text-tertiary); }

/* 여행지 선택 */
.dest-picker { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.dest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  padding: 0.55rem;
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  background: var(--ivory);
}

.dest-chips:empty::before {
  content: '국가와 도시를 선택하면 이곳에 추가됩니다.';
  padding: 0.3rem 0.4rem;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.dest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 34px;
  padding: 0 0.5rem 0 0.9rem;
  border-radius: 999px;
  background: var(--region);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
}

.dest-chip--static { padding: 0 0.9rem; }

.dest-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 12px;
  transition: background var(--transition-fast);
}

.dest-chip button:hover { background: rgba(255, 255, 255, 0.35); }

/* ==========================================================
   4. 신청 내용 보기
   ========================================================== */
.summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.75rem;
  background: var(--region);
  color: var(--white);
}

.summary-head .name { font-size: 1.15rem; font-weight: 800; }
.summary-head .date { margin-top: 0.15rem; font-size: 0.82rem; opacity: 0.75; }

.summary-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.summary-row:first-of-type { border-top: 0; padding-top: 0; }
.summary-row:last-child { padding-bottom: 0; }
.summary-row dt { font-size: 0.88rem; font-weight: 700; color: var(--text-secondary); }
.summary-row dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; color: var(--text-primary); }

.summary-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--region-sub);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-note { font-size: 0.78rem; color: var(--text-tertiary); }
.summary-memo { line-height: 1.8; word-break: break-word; }

/* ==========================================================
   5. 반응형
   ========================================================== */
@media (max-width: 1024px) {
  .bespoke-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .bespoke-hero .container { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .bespoke-heading { font-size: 1.5rem; }
  .bespoke-lead { font-size: 0.9rem; }
  .bespoke-cta-box { align-items: stretch; }
  .bespoke-points { gap: 0.6rem; }
  .bespoke-point { padding: 0.8rem 0.9rem; gap: 0.65rem; }
  .bespoke-point .ico { width: 38px; height: 38px; }
  .bespoke-point span { display: none; }

  /* 여행인원: 성인 / 아동 한 줄씩 (항목명 왼쪽, 선택 오른쪽) */
  .count-fields { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .count-field { display: flex; justify-content: space-between; gap: 1rem; }
  .count-field .select { width: 120px; }

  .summary-head { padding: 1.1rem 1.25rem; }
  .summary-row { grid-template-columns: 1fr; gap: 0.4rem; }
}
