/* Standalone TourPickGuide V5 stylesheet */

/* TOURPICKGUIDE_V5_LAYOUT_START */

.tpg-v5 {
  --tpg-ink: #183038;
  --tpg-muted: #61727a;
  --tpg-line: #dce7e8;
  --tpg-soft: #f3f8f7;
  --tpg-soft-2: #edf6f4;
  --tpg-accent: #166b61;
  --tpg-accent-dark: #0d5149;
  --tpg-gold: #a66814;
  --tpg-shadow: 0 12px 30px rgba(20, 49, 56, 0.09);

  color: var(--tpg-ink);
  font-size: 16px;
  line-height: 1.7;
}

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

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

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

.tpg-v5 h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

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

.tpg-v5__lead {
  max-width: 800px;
  margin: 0 0 1rem;
  color: var(--tpg-muted);
  font-size: 1.08rem;
  line-height: 1.78;
}

.tpg-v5__disclosure {
  margin: 0 0 1.8rem;
  padding: 13px 16px;
  border-left: 4px solid var(--tpg-accent);
  border-radius: 8px;
  background: var(--tpg-soft-2);
  color: #53666d;
  font-size: 0.88rem;
  line-height: 1.55;
}

.tpg-v5__section {
  margin: 2.7rem 0;
}

.tpg-v5__section-intro {
  max-width: 780px;
  margin: 0 0 1.35rem;
  color: var(--tpg-muted);
}

.tpg-v5-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 1.5rem 0 0;
}

.tpg-v5-summary-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tpg-line);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: var(--tpg-shadow);
}

.tpg-v5-summary-card--featured {
  border: 2px solid var(--tpg-accent);
  box-shadow: 0 14px 34px rgba(22, 107, 97, 0.17);
}

.tpg-v5-media-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e8efed;
}

.tpg-v5-summary-card__media {
  height: 190px;
}

.tpg-v5-media-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  background: linear-gradient(
    to top,
    rgba(8, 35, 41, 0.7),
    rgba(8, 35, 41, 0)
  );
  content: "";
  pointer-events: none;
}

.tpg-v5-media-link img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.tpg-v5-media-link:hover img,
.tpg-v5-media-link:focus img {
  transform: scale(1.045);
}

.tpg-v5-media-link__note {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 11px;
  left: 13px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.tpg-v5-summary-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px;
}

.tpg-v5-badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e7f4f1;
  color: var(--tpg-accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.tpg-v5-badge--gold {
  background: #fff2de;
  color: var(--tpg-gold);
}

.tpg-v5-summary-card__title {
  margin: 0 0 9px;
  font-size: 1.2rem;
  line-height: 1.32;
}

.tpg-v5-summary-card__text {
  margin: 0 0 14px;
  color: var(--tpg-muted);
  font-size: 0.93rem;
  line-height: 1.58;
}

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

.tpg-v5-stat {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--tpg-soft);
  color: #34464d;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.tpg-v5-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--tpg-accent);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

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

.tpg-v5-compare-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 0;
  border: 1px solid var(--tpg-line);
  border-radius: 14px;
  background: #ffffff;
}

.tpg-v5-compare-table {
  width: 100%;
  min-width: 740px;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tpg-v5-compare-table th,
.tpg-v5-compare-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--tpg-line);
  text-align: left;
  vertical-align: top;
}

.tpg-v5-compare-table th {
  background: var(--tpg-soft);
  color: #384950;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.tpg-v5-compare-link {
  color: var(--tpg-accent-dark);
  font-weight: 700;
  white-space: nowrap;
}

.tpg-v5-compare-link:hover,
.tpg-v5-compare-link:focus {
  text-decoration: underline;
}

.tpg-v5-advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 1.4rem 0 0;
}

.tpg-v5-advantage-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--tpg-line);
  border-radius: 14px;
  background: #ffffff;
}

.tpg-v5-advantage-card__media {
  min-height: 120px;
  border-radius: 10px;
}

.tpg-v5-advantage-card__body {
  min-width: 0;
}

.tpg-v5-advantage-card__title {
  margin: 0 0 9px;
  font-size: 1rem;
  line-height: 1.35;
}

.tpg-v5-advantage-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpg-v5-advantage-list li {
  position: relative;
  margin: 0 0 7px;
  padding-left: 15px;
  color: #52646b;
  font-size: 0.87rem;
  line-height: 1.45;
}

.tpg-v5-advantage-list li::before {
  position: absolute;
  top: 0.53em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--tpg-accent);
  content: "";
}

.tpg-v5-advantage-link {
  display: inline-block;
  margin-top: 7px;
  color: var(--tpg-accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.tpg-v5-advantage-link:hover,
.tpg-v5-advantage-link:focus {
  text-decoration: underline;
}

.tpg-v5-detail-list {
  display: grid;
  gap: 24px;
  margin: 1.45rem 0 0;
}

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

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

.tpg-v5-detail-gallery__cover {
  grid-column: 1 / -1;
  height: 270px;
  border-radius: 12px;
}

.tpg-v5-detail-gallery__thumb {
  height: 125px;
  border-radius: 10px;
}

.tpg-v5-detail-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tpg-v5-detail-card__eyebrow {
  margin: 0 0 8px;
  color: var(--tpg-accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tpg-v5-detail-card__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.28;
}

.tpg-v5-detail-card__best-for {
  margin: 0 0 14px;
  color: var(--tpg-muted);
  font-size: 0.95rem;
  line-height: 1.58;
}

.tpg-v5-detail-card__description {
  margin: 0 0 16px;
  color: #3f5259;
}

.tpg-v5-detail-card__list-title {
  margin: 0 0 7px;
  font-size: 0.92rem;
  font-weight: 700;
}

.tpg-v5-detail-card__list {
  margin: 0 0 18px;
  padding-left: 1.15rem;
}

.tpg-v5-detail-card__list li {
  margin-bottom: 0.45rem;
  color: #52646b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.tpg-v5-detail-card .tpg-v5-button {
  margin-top: auto;
}

.tpg-v5-feedback {
  margin: 1.5rem 0 0;
  padding: 19px;
  border: 1px solid #d7e5e1;
  border-radius: 14px;
  background: #f4faf8;
}

.tpg-v5-feedback__eyebrow {
  margin: 0 0 7px;
  color: var(--tpg-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tpg-v5-feedback p {
  margin: 0 0 9px;
}

.tpg-v5-feedback p:last-child {
  margin-bottom: 0;
  color: var(--tpg-muted);
  font-size: 0.87rem;
}

.tpg-v5-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 1.4rem 0 0;
}

.tpg-v5-route-card {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid var(--tpg-line);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f5faf8);
}

.tpg-v5-route-card::before {
  display: block;
  width: 34px;
  height: 5px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: var(--tpg-accent);
  content: "";
}

.tpg-v5-route-card__title {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.tpg-v5-route-card__text {
  margin: 0;
  color: var(--tpg-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.tpg-v5-notes,
.tpg-v5-faq {
  margin: 1.2rem 0 0;
}

.tpg-v5-notes {
  padding-left: 1.2rem;
}

.tpg-v5-notes li {
  margin-bottom: 0.65rem;
  color: #52646b;
}

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

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

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

@media (max-width: 1100px) {
  .tpg-v5-summary-grid,
  .tpg-v5-advantages-grid,
  .tpg-v5-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .tpg-v5-detail-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .tpg-v5-detail-gallery__cover {
    height: 250px;
  }
}

@media (max-width: 650px) {
  .tpg-v5-summary-grid,
  .tpg-v5-advantages-grid,
  .tpg-v5-route-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tpg-v5-summary-card__media {
    height: 220px;
  }

  .tpg-v5-advantage-card {
    grid-template-columns: 102px minmax(0, 1fr);
  }

  .tpg-v5-detail-gallery__cover {
    height: 220px;
  }

  .tpg-v5-detail-gallery__thumb {
    height: 105px;
  }
}

/* TOURPICKGUIDE_V5_LAYOUT_END */
