/* TOURPICKGUIDE_V7_LAYOUT_START */

.tpg-v7,
.tpg-v7 *,
.tpg-v7 *::before,
.tpg-v7 *::after {
  box-sizing: border-box;
}

.tpg-v7 {
  --tpg-v7-ink: #183038;
  --tpg-v7-muted: #61727a;
  --tpg-v7-line: #dce7e8;
  --tpg-v7-soft: #f3f8f7;
  --tpg-v7-soft-2: #e9f4f1;
  --tpg-v7-accent: #146b61;
  --tpg-v7-accent-dark: #0c5149;
  --tpg-v7-gold: #a86a16;
  --tpg-v7-shadow: 0 10px 28px rgba(18, 48, 56, 0.09);

  max-width: 1120px;
  margin: 0 auto;
  color: var(--tpg-v7-ink);
  font-size: 16px;
  line-height: 1.7;
}

.tpg-v7 h2,
.tpg-v7 h3,
.tpg-v7 p {
  color: inherit;
}

.tpg-v7 h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.tpg-v7 h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.34;
}

.tpg-v7 a {
  text-decoration: none;
}

.tpg-v7__lead {
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--tpg-v7-muted);
  font-size: 1.08rem;
  line-height: 1.78;
}

.tpg-v7__disclosure {
  margin: 0 0 28px;
  padding: 13px 15px;
  border-left: 4px solid var(--tpg-v7-accent);
  border-radius: 8px;
  background: var(--tpg-v7-soft-2);
  color: #52666d;
  font-size: 0.88rem;
  line-height: 1.55;
}

.tpg-v7__section {
  margin: 44px 0;
}

.tpg-v7__section-intro {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--tpg-v7-muted);
}

.tpg-v7-compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--tpg-v7-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--tpg-v7-shadow);
}

.tpg-v7-table {
  width: 100%;
  min-width: 940px;
  margin: 0;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.89rem;
}

.tpg-v7-table th,
.tpg-v7-table td {
  padding: 15px 13px;
  border-bottom: 1px solid var(--tpg-v7-line);
  text-align: left;
  vertical-align: middle;
}

.tpg-v7-table th {
  background: var(--tpg-v7-soft);
  color: #3b4f56;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tpg-v7-table tr:last-child td {
  border-bottom: 0;
}

.tpg-v7-tour-cell {
  min-width: 220px;
}

.tpg-v7-tour-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--tpg-v7-ink);
  font-weight: 800;
  line-height: 1.32;
}

.tpg-v7-tour-link img {
  display: block;
  width: 78px;
  min-width: 78px;
  height: 62px;
  margin: 0;
  border-radius: 9px;
  object-fit: cover;
}

.tpg-v7-tour-link:hover span,
.tpg-v7-tour-link:focus span {
  color: var(--tpg-v7-accent-dark);
  text-decoration: underline;
}

.tpg-v7-metric {
  color: #344951;
  font-weight: 700;
  white-space: nowrap;
}

.tpg-v7-mini-button,
.tpg-v7-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 9px;
  background: var(--tpg-v7-accent);
  color: #ffffff !important;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  touch-action: manipulation;
}

.tpg-v7-mini-button {
  padding: 10px 12px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.tpg-v7-cta {
  width: 100%;
  margin-top: auto;
  padding: 13px 15px;
  font-size: 0.94rem;
}

.tpg-v7-mini-button:hover,
.tpg-v7-mini-button:focus,
.tpg-v7-cta:hover,
.tpg-v7-cta:focus {
  background: var(--tpg-v7-accent-dark);
  color: #ffffff !important;
}

.tpg-v7-detail-list {
  display: grid;
  gap: 26px;
}

.tpg-v7-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 25px;
  padding: 22px;
  border: 1px solid var(--tpg-v7-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(18, 48, 56, 0.07);
}

.tpg-v7-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.tpg-v7-gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 11px;
  background: #e6efed;
}

.tpg-v7-gallery a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background: linear-gradient(
    to top,
    rgba(8, 34, 40, 0.68),
    rgba(8, 34, 40, 0)
  );
  content: "";
  pointer-events: none;
}

.tpg-v7-gallery img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.tpg-v7-gallery a:hover img,
.tpg-v7-gallery a:focus img {
  transform: scale(1.045);
}

.tpg-v7-gallery__cover {
  grid-column: 1 / -1;
  height: 270px;
}

.tpg-v7-gallery__thumb {
  height: 128px;
}

.tpg-v7-photo-note {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  left: 12px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.28;
}

.tpg-v7-detail-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tpg-v7-eyebrow {
  margin: 0 0 8px;
  color: var(--tpg-v7-accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tpg-v7-detail-title {
  margin: 0 0 11px;
  font-size: clamp(1.32rem, 2.6vw, 1.8rem);
  line-height: 1.28;
}

.tpg-v7-best-for {
  margin: 0 0 13px;
  color: var(--tpg-v7-muted);
  line-height: 1.58;
}

.tpg-v7-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 16px;
}

.tpg-v7-stat {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--tpg-v7-soft);
  color: #344951;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.24;
}

.tpg-v7-overview {
  margin: 0 0 16px;
  color: #40565e;
}

.tpg-v7-feature-heading {
  margin: 0 0 7px;
  font-size: 0.93rem;
  font-weight: 800;
}

.tpg-v7-feature-list {
  margin: 0 0 18px;
  padding-left: 1.15rem;
}

.tpg-v7-feature-list li {
  margin-bottom: 7px;
  color: #52666d;
  font-size: 0.91rem;
  line-height: 1.45;
}

.tpg-v7-related-grid,
.tpg-v7-decision-grid,
.tpg-v7-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tpg-v7-related-card {
  position: relative;
  display: block;
  min-height: 230px;
  overflow: hidden;
  border-radius: 15px;
  background: #e8f0ee;
  box-shadow: 0 8px 22px rgba(18, 48, 56, 0.08);
}

.tpg-v7-related-card img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.tpg-v7-related-card:hover img,
.tpg-v7-related-card:focus img {
  transform: scale(1.05);
}

.tpg-v7-related-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 62%;
  background: linear-gradient(
    to top,
    rgba(7, 31, 36, 0.82),
    rgba(7, 31, 36, 0)
  );
  content: "";
  pointer-events: none;
}

.tpg-v7-related-card__content {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 15px;
  left: 17px;
  color: #ffffff;
}

.tpg-v7-related-card__label {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.19);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  backdrop-filter: blur(2px);
}

.tpg-v7-related-card__title {
  margin: 0;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.34;
}

.tpg-v7-route,
.tpg-v7-decision-card {
  padding: 19px 17px;
  border: 1px solid var(--tpg-v7-line);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f4faf8);
}

.tpg-v7-route::before,
.tpg-v7-decision-card::before {
  display: block;
  width: 36px;
  height: 5px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--tpg-v7-accent);
  content: "";
}

.tpg-v7-route h3,
.tpg-v7-decision-card h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
}

.tpg-v7-route p,
.tpg-v7-decision-card p {
  margin: 0;
  color: var(--tpg-v7-muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.tpg-v7-decision-card {
  display: block;
  color: var(--tpg-v7-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpg-v7-decision-card:hover,
.tpg-v7-decision-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(18, 48, 56, 0.1);
}

.tpg-v7-tip-box {
  margin: 20px 0;
  padding: 19px;
  border: 1px solid #d6e5e1;
  border-radius: 14px;
  background: #f3faf7;
}

.tpg-v7-tip-box h3 {
  margin: 0 0 8px;
  color: var(--tpg-v7-accent-dark);
  font-size: 1rem;
}

.tpg-v7-tip-box p {
  margin: 0;
  color: #445a61;
}

.tpg-v7-tips {
  margin: 16px 0 0;
  padding-left: 1.2rem;
}

.tpg-v7-tips li {
  margin-bottom: 8px;
  color: #52666d;
}

.tpg-v7-faq {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.tpg-v7-faq-item {
  padding: 16px 17px;
  border: 1px solid var(--tpg-v7-line);
  border-radius: 12px;
  background: #ffffff;
}

.tpg-v7-faq-item h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.tpg-v7-faq-item p {
  margin: 0;
  color: var(--tpg-v7-muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.tpg-v7-internal-links {
  margin: 44px 0 0;
}

.tpg-v7-internal-links__intro {
  margin: 0 0 18px;
  color: var(--tpg-v7-muted);
}

.tpg-v7-internal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tpg-v7-internal-card {
  overflow: hidden;
  border: 1px solid var(--tpg-v7-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--tpg-v7-ink);
  box-shadow: 0 8px 22px rgba(18, 48, 56, 0.06);
}

.tpg-v7-internal-card img {
  display: block;
  width: 100%;
  height: 155px;
  margin: 0;
  object-fit: cover;
}

.tpg-v7-internal-card__body {
  padding: 15px;
}

.tpg-v7-internal-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.tpg-v7-internal-card p {
  margin: 0;
  color: var(--tpg-v7-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tpg-v7-internal-card:hover,
.tpg-v7-internal-card:focus {
  box-shadow: 0 12px 26px rgba(18, 48, 56, 0.12);
}

@media (max-width: 860px) {
  .tpg-v7-detail {
    grid-template-columns: 1fr;
  }

  .tpg-v7-related-grid,
  .tpg-v7-decision-grid,
  .tpg-v7-route-grid,
  .tpg-v7-internal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tpg-v7 {
    font-size: 16px;
  }

  .tpg-v7__section {
    margin: 34px 0;
  }

  .tpg-v7-compare-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .tpg-v7-table,
  .tpg-v7-table tbody,
  .tpg-v7-table tr,
  .tpg-v7-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .tpg-v7-table {
    background: transparent;
  }

  .tpg-v7-table thead {
    display: none;
  }

  .tpg-v7-table tr {
    margin: 0 0 15px;
    padding: 15px;
    border: 1px solid var(--tpg-v7-line);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(18, 48, 56, 0.07);
  }

  .tpg-v7-table td {
    padding: 9px 0;
    border: 0;
  }

  .tpg-v7-table td[data-label] {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .tpg-v7-table td[data-label]::before {
    color: #63767d;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .tpg-v7-tour-cell {
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--tpg-v7-line) !important;
  }

  .tpg-v7-tour-link img {
    width: 98px;
    min-width: 98px;
    height: 76px;
  }

  .tpg-v7-mini-button {
    width: 100%;
  }

  .tpg-v7-detail {
    gap: 18px;
    padding: 16px;
    border-radius: 15px;
  }

  .tpg-v7-gallery__cover {
    height: 225px;
  }

  .tpg-v7-gallery__thumb {
    height: 105px;
  }

  .tpg-v7-related-grid,
  .tpg-v7-decision-grid,
  .tpg-v7-route-grid,
  .tpg-v7-internal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tpg-v7-related-card {
    min-height: 220px;
  }
}

/* TOURPICKGUIDE_V7_LAYOUT_END */

/* TOURPICKGUIDE_V7_FINAL_ACTIVE_LAYOUT_START */

/*
 * Final active-layout patch
 *
 * 적용 대상:
 * - 상품 비교표
 * - 상품별 상세 카드
 * - 여행 일정 스타일 카드
 * - 향후 내부링크 카드
 *
 * 제거된 광고형 Viator 추천 카드와
 * Still Deciding 카드용 임시 패치는 포함하지 않습니다.
 */

.tpg-v7 {
  container-type: inline-size;
  container-name: tpg-v7-content;
}

/*
 * 실제 본문 폭이 좁을 때 적용합니다.
 * 브라우저 전체 폭이 아니라 글 영역 폭을 기준으로 합니다.
 */
@container tpg-v7-content (max-width: 980px) {
  .tpg-v7-compare-wrap {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .tpg-v7-table,
  .tpg-v7-table tbody,
  .tpg-v7-table tr,
  .tpg-v7-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .tpg-v7-table {
    background: transparent !important;
  }

  .tpg-v7-table thead {
    display: none !important;
  }

  .tpg-v7-table tr {
    margin: 0 0 16px !important;
    padding: 16px !important;
    border: 1px solid var(--tpg-v7-line) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow:
      0 7px 20px rgba(18, 48, 56, 0.07) !important;
  }

  .tpg-v7-table td {
    padding: 8px 0 !important;
    border: 0 !important;
  }

  .tpg-v7-table td[data-label] {
    display: grid !important;
    grid-template-columns:
      104px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  .tpg-v7-table td[data-label]::before {
    color: #63767d !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    content: attr(data-label) !important;
  }

  .tpg-v7-tour-cell {
    padding-bottom: 13px !important;
    border-bottom:
      1px solid var(--tpg-v7-line) !important;
  }

  .tpg-v7-tour-link {
    align-items: center !important;
  }

  .tpg-v7-tour-link img {
    width: 112px !important;
    min-width: 112px !important;
    height: 82px !important;
  }

  .tpg-v7-mini-button {
    width: 100% !important;
    min-height: 46px !important;
  }

  .tpg-v7-detail {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .tpg-v7-detail-title {
    font-size: 1.35rem !important;
  }

  .tpg-v7-overview {
    line-height: 1.65 !important;
  }

  .tpg-v7-route-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .tpg-v7-route {
    min-height: auto !important;
    padding: 16px 17px !important;
  }

  .tpg-v7-route::before {
    width: 42px !important;
    height: 5px !important;
    margin-bottom: 10px !important;
  }

  .tpg-v7-route h3 {
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }

  .tpg-v7-route p {
    font-size: 0.92rem !important;
    line-height: 1.58 !important;
  }

  .tpg-v7-internal-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }
}

@container tpg-v7-content (max-width: 620px) {
  .tpg-v7 {
    font-size: 16px !important;
  }

  .tpg-v7 h2 {
    font-size: 1.55rem !important;
  }

  .tpg-v7__section {
    margin: 36px 0 !important;
  }

  .tpg-v7-table td[data-label] {
    grid-template-columns:
      92px minmax(0, 1fr) !important;
  }

  .tpg-v7-tour-link img {
    width: 96px !important;
    min-width: 96px !important;
    height: 72px !important;
  }

  .tpg-v7-detail {
    padding: 15px !important;
    border-radius: 15px !important;
  }

  .tpg-v7-gallery__cover {
    height: 225px !important;
  }

  .tpg-v7-gallery__thumb {
    height: 106px !important;
  }

  .tpg-v7-internal-grid {
    grid-template-columns: 1fr !important;
  }
}

/*
 * 컨테이너 쿼리를 지원하지 않는 브라우저용
 * 기본 모바일 폴백입니다.
 */
@supports not (container-type: inline-size) {
  @media (max-width: 720px) {
    .tpg-v7-route-grid {
      grid-template-columns: 1fr !important;
    }

    .tpg-v7-detail {
      grid-template-columns: 1fr !important;
    }
  }
}

/* TOURPICKGUIDE_V7_FINAL_ACTIVE_LAYOUT_END */
