/* 상품 상세 — product-detail.html */

/* 상단 비주얼 */
.sub_visual {
  position: relative;
  height: min(62vh, 560px);
  min-height: 380px;
  overflow: hidden;
  background: var(--forest-deep);
}
.sub_visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub_visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 20, 15, 0.72) 0%, rgba(15, 20, 15, 0.05) 55%, rgba(15, 20, 15, 0.32) 100%);
}
.sub_visual_copy {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 40px;
  color: #fff;
}
.sub_visual_label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--clay-tint);
}
.sub_visual_region {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

/* 여행 요약 */
.psummary_label {
  color: var(--clay-deep);
  font-size: 13px;
  font-weight: 700;
}
.psummary_title {
  font-family: "Noto Serif KR", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.35;
  margin: 12px 0 14px;
}
.psummary_lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.psummary_price {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--ivory-deep);
  font-size: 15px;
  font-weight: 700;
}
.psummary_facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  overflow: hidden;
}
.psummary_fact {
  padding: 22px 20px;
  background: var(--surface);
}
.psummary_fact dt {
  color: var(--subtle);
  font-size: 12.5px;
  font-weight: 600;
}
.psummary_fact dd {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 650;
}

/* 섹션 바로가기 탭 */
.ptabs {
  position: sticky;
  top: calc(var(--header-height) + var(--safe-top));
  z-index: 50;
  display: flex;
  gap: 6px;
  padding: 10px var(--gutter);
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.ptabs::-webkit-scrollbar {
  display: none;
}
.ptab {
  flex: 0 0 auto;
  min-height: 40px;
  padding-inline: 16px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ptab.active {
  background: var(--forest-deep);
  color: #fff;
}

/* 상세 섹션 · 이미지+글 */
.psec {
  scroll-margin-top: calc(var(--header-height) + var(--safe-top) + 61px);
}
.psec_label {
  color: var(--clay-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.psec_title {
  font-family: "Noto Serif KR", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.4;
  margin: 12px 0 0;
}
.psec_head {
  margin-bottom: 40px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5vw;
}
.split + .split {
  margin-top: 72px;
}
.split_rev .split_media {
  order: 2;
}
.split_media {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ivory-deep);
}
.split_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split_title {
  font-family: "Noto Serif KR", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
  margin: 12px 0 14px;
}
.split_desc {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}
.split_copy .psec_title + .split_desc {
  margin-top: 18px;
}
.split_specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--ivory-deep);
  font-size: 14.5px;
}
.split_specs dt {
  color: var(--subtle);
  font-weight: 600;
}
.split_specs dd {
  margin: 0;
  font-weight: 650;
}

/* 일정표 */
.sched_toggle {
  margin-top: 20px;
  min-height: 42px;
  padding-inline: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.day {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.day + .day {
  margin-top: 12px;
}
.day .ac-header {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.day .ac-trigger::after {
  content: none;
  display: none;
}
.day_head {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 24px;
  text-align: left;
}
.day .ac-panel {
  overflow: hidden;
  transition-property: height, visibility;
  transition-timing-function: ease;
}
.day.js-enabled:not(.is-active) .ac-panel {
  visibility: hidden;
}
.day.is-active .ac-panel {
  visibility: visible;
}
.day_num {
  flex: 0 0 auto;
  min-width: 58px;
  color: var(--clay-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.day_headings {
  flex: 1;
  min-width: 0;
}
.day_title {
  display: block;
  font-size: 17px;
  font-weight: 650;
}
.day_route {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
}
.day_icon {
  flex: 0 0 auto;
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.28s ease;
}
.day_icon::before,
.day_icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: var(--muted);
}
.day_icon::after {
  transform: rotate(90deg);
  transition: opacity 0.28s ease;
}
.day.is-active .day_icon {
  transform: rotate(180deg);
}
.day.is-active .day_icon::after {
  opacity: 0;
}

.day_inner {
  padding: 4px 24px 26px;
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.timeline_item {
  position: relative;
}
.timeline_item + .timeline_item {
  margin-top: 22px;
}
.timeline_item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}
.timeline_time {
  color: var(--clay-deep);
  font-size: 12.5px;
  font-weight: 700;
}
.timeline_title {
  margin-top: 5px;
  font-size: 15.5px;
  font-weight: 650;
}
.timeline_desc {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.day_stay {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}
.day_stay > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--ivory-deep);
  font-size: 13px;
}
.day_stay dt {
  color: var(--subtle);
  font-weight: 600;
}
.day_stay dd {
  margin: 0;
  font-weight: 650;
}

/* 안내사항 */
.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-grid);
}
.terms_box {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.terms_box h3 {
  font-size: 16px;
  font-weight: 700;
}
.terms_box ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.terms_box li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.terms_box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--clay);
}
.notices {
  margin-top: 56px;
}
.notices h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.notice {
  border-bottom: 1px solid var(--line);
}
.notice summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 650;
  list-style: none;
}
.notice summary::-webkit-details-marker {
  display: none;
}
.notice_icon {
  flex: 0 0 auto;
  color: var(--subtle);
  font-size: 15px;
  transition: transform 0.24s ease;
}
.notice[open] .notice_icon {
  transform: rotate(45deg);
}
.notice p {
  padding: 0 2px 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

/* 태블릿 */
@media (max-width: 1023px) {
  .terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .psummary_facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .split_media {
    height: 340px;
  }
}

/* 모바일 */
@media (max-width: 767px) {
  .psummary_title {
    font-size: 26px;
    line-height: 1.3;
    margin: 8px 0 12px;
  }
  .psummary_lead {
    font-size: 15px;
    line-height: 1.65;
  }
  .psec_head {
    margin-bottom: 28px;
  }
  .psec_title {
    font-size: 24px;
    line-height: 1.3;
    margin-top: 8px;
  }
  .split_title {
    font-size: 22px;
    line-height: 1.32;
    margin: 12px 0;
  }
  .split_desc {
    font-size: 14.5px;
    line-height: 1.65;
  }
  .terms {
    grid-template-columns: 1fr;
  }
  .psummary_facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sub_visual {
    height: 58vh;
    min-height: 320px;
  }
  .ptabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0 8px;
    overflow: hidden;
  }
  .ptab {
    min-width: 0;
    min-height: 42px;
    padding: 8px 2px;
    border-radius: 0;
    font-size: clamp(11px, 2.9vw, 13px);
    letter-spacing: -0.04em;
    line-height: 1.25;
    white-space: normal;
    word-break: keep-all;
    text-align: center;
  }
  .ptab.active {
    background: transparent;
    color: var(--forest-deep);
    box-shadow: inset 0 -2px 0 var(--forest-deep);
  }
  .split,
  .split_rev {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .split_rev .split_media {
    order: 0;
  }
  .split + .split {
    margin-top: 48px;
  }
  .split_media {
    height: 62vw;
  }
  .day_head {
    gap: 12px;
    padding: 18px 18px;
  }
  .day_num {
    min-width: 46px;
  }
  .day_inner {
    padding: 4px 18px 22px;
  }
}

/* 마우스 호버 전용 — 터치에서는 적용 안 함 */
@media (hover: hover) and (pointer: fine) {
  .sched_toggle:hover {
    border-color: var(--forest-deep);
    color: var(--ink);
  }
  .ptab:hover:not(.active) {
    background: var(--ivory-deep);
    color: var(--ink);
  }
  .day_head:hover .day_title {
    color: var(--clay-deep);
  }
}
