@charset "UTF-8";
/* CSS Document */

body {
  margin: 0;
  background: #ffffff;
  color: #0f172a;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Apple SD Gothic Neo, Noto Sans KR, sans-serif;
}

.itinerary_wrap {
  max-width: 1100px;
  margin: 34px auto;
  padding: 0 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Apple SD Gothic Neo, Noto Sans KR, sans-serif;
}

.itinerary_top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.itinerary_btn_group {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.itinerary_btn {
  display: inline-block;
  border: 1px solid #cbd5e1;
  background: #fff;
  line-height: 1.2;
  border-radius: 12px;
  padding: 9px 12px;
  text-decoration: none;
  color: #111827;
  font-size: 14px;
  margin-left: 6px;
}

.itinerary_card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.itinerary_card table td a,
.itinerary_card table td a:link,
.itinerary_card table td a:visited {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.itinerary_card table td a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.itinerary_card table th,
.itinerary_card table td {
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 1.35;
}

.itinerary_badge {
  display: inline-block;
  font-weight: 800;
  font-size: 16px;
  color: #2563eb;
  background: #e8efff;
  border-radius: 999px;
  padding: 6px 20px;
}

.itinerary_title {
  font-weight: 900;
  font-size: 20px;
  margin: 4px 0 0;
  color: #000000;
}

.itinerary_muted {
  color: #64748b;
  font-size: 13px;
}

.itinerary_entry {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  background: #fafafa;
  margin: 10px 0;
}

.itinerary_entry .itinerary_sub {
  font-weight: 900;
  margin-bottom: 3px;
  font-size: 16px;
  color: #000000;
}

.itinerary_entry .itinerary_body {
  word-break: normal;
  margin: 0;
  font-size: 16px;
  line-height: 22px;
}

.itinerary_body p {
  margin: 4px 0;
}

.itinerary_entry .itinerary_body ul,
.itinerary_entry .itinerary_body ol {
  margin: 0;
  padding-left: 18px;
}

.itinerary_entry .itinerary_body li {
  margin: 0;
  padding: 0;
  list-style: disc;
  line-height: 1.35;
}

.itinerary_entry .itinerary_body li + li {
  margin-top: 0;
}

.itinerary_body strong {
  font-weight: 700;
}

.itinerary_body span {
  line-height: inherit;
}

.itinerary_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

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

.itinerary_kv {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px 10px;
  padding: 12px;
  font-size: 16px;
}

.itinerary_k {
  font-weight: 500;
  font-size: 16px;
  margin: 0;
  padding-right: 4px;
}

.itinerary_v {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 16px;
}

.itinerary_two_col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.itinerary_box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #fafafa;
}

.itinerary_box_title {
  font-weight: 900;
  margin-bottom: 8px;
  font-size: 18px;
  color: #000000;
}

.itinerary_box_body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 16px;
}

.itinerary_box_body_refund {
  word-break: break-word;
  font-size: 16px;
  color: #444444;
}

.itinerary_sub_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  margin-right: 8px;
  flex: 0 0 auto;
}

/* view page */
.itinerary_imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.itinerary_imgs img {
  width: 240px !important;
  height: 188px !important;
  object-fit: cover !important;
  border-radius: 10px;
  display: block;
}

.drag-ghost {
  opacity: .4;
  background: #e0f2fe;
}

/* Day 제목 라인 */
.itinerary_day_head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  flex-wrap: nowrap !important;
  width: 100%;
  margin-bottom: 10px;
}

/* Day + 제목 묶음 */
.itinerary_day_title_group {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  flex-wrap: nowrap !important;
  min-width: 0;
  flex: 1 1 auto;
}

/* Day 배지 */
.itinerary_day_title_group .itinerary_badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 제목 */
.itinerary_day_head .itinerary_title {
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  line-height: 1.3;
}

/* 오른쪽 + - 버튼 */
.itinerary_day_toggle {
  margin-left: auto !important;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px;
  padding: 0;
}

.itinerary_day_toggle:hover {
  background: #f5f5f5;
}

/* =========================
   리스트 제목 링크 색상 정리
========================= */
.card table td a,
.card table td a:link,
.card table td a:visited {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.card table td a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* =========================
   리스트 행 높이 약간 줄이기
========================= */
.card table th,
.card table td {
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 1.35;
}

/* 관리 버튼도 행 높이에 맞게 살짝 줄임 */
.card .btn.small {
  padding: 5px 9px;
  font-size: 13px;
}