/* ============================================================
   Trek Detail Page — trek-detail.css
   CSS prefix: trd-
   ============================================================ */

:root {
  --primary-color: #e79520;
  --secondary-color: #31a1de;
  --font-family-primary: "Jost", sans-serif;
  --text-dark: #1a1e39;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --bg-light: #f8fafc;
}

/* ── Prevent global horizontal overflow ─────────────────────── */
.page-trek-detail,
.page-tour-detail,
.page-short-tour-detail {
  overflow-x: hidden;
}

/* ── Shared container ───────────────────────────────────────── */
.trd-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ============================================================
   TASK 2 — PAGE BANNER
   ============================================================ */
.tan-page-banner {
  position: relative;
  height: 500px;
  background: url('../images/t24.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -120px;
  padding-top: 120px;
}
.tan-page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.65) 100%);
}
.tan-page-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}
.tan-page-banner__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-family-primary);
}
.tan-page-banner__breadcrumb a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}
.tan-page-banner__breadcrumb a:hover { color: var(--primary-color); }
.tan-page-banner__sep { color: rgba(255,255,255,.4); font-size: .7rem; }
.tan-page-banner__breadcrumb span:last-child {
  color: var(--primary-color);
  font-size: .85rem;
  font-weight: 600;
}
.tan-page-banner__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  font-family: var(--font-family-primary);
  letter-spacing: .5px;
  line-height: 1.2;
  max-width: 800px;
}

/* ── Active nav link ─────────────────────────────────────────── */
.tan-header__nav-link--active {
  color: var(--primary-color) !important;
}

/* ── Banner responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .tan-page-banner { height: 380px; margin-top: -80px; padding-top: 80px; }
}
@media (max-width: 768px) {
  .tan-page-banner { height: 320px; margin-top: -60px; padding-top: 60px; }
  .tan-page-banner__title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .tan-page-banner { height: 280px; }
  .tan-page-banner__title { font-size: 1.4rem; }
}

/* ============================================================
   TASK 3 — PHOTO GALLERY
   ============================================================ */
.trd-gallery-section {
  background: #fff;
  padding: 40px 0 0;
}

.trd-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Main image */
.trd-gallery__main-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}
.trd-gallery__main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .2s ease;
}
.trd-gallery__main-wrap:hover .trd-gallery__main {
  transform: scale(1.02);
}
.trd-gallery__view-all {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .82rem;
  font-family: var(--font-family-primary);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.trd-gallery__view-all:hover { background: rgba(231,149,32,.85); }

/* Thumbnails strip */
.trd-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.trd-gallery__thumb {
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
  opacity: .72;
  transition: opacity .2s, outline .15s;
  outline: 3px solid transparent;
}
.trd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trd-gallery__thumb:hover { opacity: 1; }
.trd-gallery__thumb--active {
  opacity: 1;
  outline-color: var(--primary-color);
}

/* ── Gallery responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .trd-gallery-section { padding: 24px 0 0; }
  .trd-gallery__main-wrap { aspect-ratio: 4 / 3; border-radius: 12px; }
  .trd-gallery__thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .trd-gallery__thumb { border-radius: 8px; }
}
@media (max-width: 480px) {
  .trd-gallery__view-all { font-size: .75rem; padding: 6px 10px; }
}

/* ============================================================
   TASK 3 — LIGHTBOX
   ============================================================ */
.trd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.trd-lightbox--open {
  opacity: 1;
  pointer-events: auto;
}
.trd-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  cursor: pointer;
}
.trd-lightbox__img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trd-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transition: opacity .2s;
}
.trd-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.trd-lightbox__close:hover { background: rgba(231,149,32,.75); }
.trd-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.trd-lightbox__nav:hover { background: rgba(231,149,32,.75); }
.trd-lightbox__prev { left: 20px; }
.trd-lightbox__next { right: 20px; }
.trd-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.75);
  font-family: var(--font-family-primary);
  font-size: .85rem;
  background: rgba(0,0,0,.45);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   TASK 4 — INFO HEADER
   ============================================================ */
.trd-info-header {
  background: #fff;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--border-color);
}

/* Back link + actions row */
.trd-info-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.trd-info-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-family-primary);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}
.trd-info-header__back:hover { color: var(--primary-color); }
.trd-info-header__back i { font-size: .8rem; }

.trd-info-header__actions {
  display: flex;
  gap: 8px;
}
.trd-info-header__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  padding: 7px 16px;
  font-family: var(--font-family-primary);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.trd-info-header__action-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.trd-info-header__action-btn.trd-wishlist--saved i {
  font-weight: 900;
  color: #e74c3c;
}

/* Title row */
.trd-info-header__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.trd-title {
  font-family: var(--font-family-primary);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.2;
}

/* Difficulty badge */
.trd-difficulty-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-family: var(--font-family-primary);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.trd-difficulty-badge--easy       { background: #d1fae5; color: #065f46; }
.trd-difficulty-badge--moderate   { background: #fef3c7; color: #92400e; }
.trd-difficulty-badge--challenging { background: #fee2e2; color: #991b1b; }
.trd-difficulty-badge--expert     { background: #ede9fe; color: #5b21b6; }

/* Info bar */
.trd-info-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-family-primary);
  font-size: .9rem;
  color: var(--text-muted);
}
.trd-info-bar__divider {
  width: 1px;
  height: 16px;
  background: var(--border-color);
  flex-shrink: 0;
}
.trd-info-bar__price {
  color: var(--text-dark);
  font-weight: 500;
}
.trd-info-bar__price strong {
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 700;
}
.trd-info-bar__price em {
  font-style: normal;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 400;
}
.trd-info-bar__rating {
  display: flex;
  align-items: center;
  gap: 5px;
}
.trd-info-bar__stars {
  color: #f59e0b;
  font-size: .95rem;
  letter-spacing: 1px;
}
.trd-info-bar__rating strong {
  color: var(--text-dark);
  font-weight: 600;
}
.trd-info-bar__reviews {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}
.trd-info-bar__reviews:hover { color: var(--primary-color); }
.trd-info-bar__meta {
  display: flex;
  align-items: center;
  gap: 5px;
}
.trd-info-bar__meta i { color: var(--primary-color); font-size: .85rem; }

/* ── Info header responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .trd-info-header { padding: 24px 0 20px; }
  .trd-info-header__top { flex-wrap: wrap; gap: 12px; }
  .trd-info-bar__divider { display: none; }
  .trd-info-bar {
    gap: 8px 16px;
  }
  .trd-title { font-size: 1.4rem; }
}

/* ============================================================
   TASK 5 — FEATURES BAR
   ============================================================ */
.trd-features-section {
  background: #fff;
  padding: 28px 0;
}

.trd-features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

.trd-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-right: 1px solid var(--border-color);
  transition: background .2s;
}
.trd-feature:last-child { border-right: none; }
.trd-feature:hover { background: #f1f5f9; }

.trd-feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(231,149,32,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.trd-feature__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.trd-feature__label {
  font-family: var(--font-family-primary);
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.trd-feature__value {
  font-family: var(--font-family-primary);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

/* ── Features responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .trd-features { grid-template-columns: repeat(3, 1fr); }
  .trd-feature:nth-child(3) { border-right: none; }
  .trd-feature:nth-child(4),
  .trd-feature:nth-child(5),
  .trd-feature:nth-child(6) { border-top: 1px solid var(--border-color); }
}
@media (max-width: 640px) {
  .trd-features { grid-template-columns: repeat(2, 1fr); border-radius: 10px; }
  .trd-feature { padding: 16px 18px; }
  .trd-feature:nth-child(odd) { border-right: 1px solid var(--border-color); }
  .trd-feature:nth-child(even) { border-right: none; }
  .trd-feature:nth-child(3) { border-right: 1px solid var(--border-color); }
  .trd-feature:nth-child(n+3) { border-top: 1px solid var(--border-color); }
  .trd-feature__icon { width: 36px; height: 36px; font-size: .9rem; }
}

/* ============================================================
   TASKS 6–16 — DETAIL SECTION, TABS, CONTENT, SIDEBAR, RELATED
   ============================================================ */

/* ── Two-column layout ─────────────────────────────────────── */
.trd-detail-section {
  padding: 40px 0 60px;
  background: #fff;
}
.trd-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.trd-main {
  flex: 1;
  min-width: 0;
}
.trd-sidebar {
  width: 340px;
  flex-shrink: 0;
  position: sticky;
  top: 130px;
}

/* ── Tab navigation ────────────────────────────────────────── */
.trd-tabs {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 28px;
  overflow-x: hidden;
}
.trd-tabs__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  /* constrain to parent width so it scrolls rather than overflows */
  max-width: 100%;
}
.trd-tabs__nav::-webkit-scrollbar { display: none; }

.trd-tabs__btn {
  background: none;
  border: none;
  padding: 12px 18px;
  font-family: var(--font-family-primary);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.trd-tabs__btn:hover { color: var(--text-dark); }
.trd-tabs__btn--active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

/* ── Tab panes ─────────────────────────────────────────────── */
.trd-tab-pane {
  display: none;
}
.trd-tab-pane--active {
  display: block;
  animation: trdFadeIn .2s ease;
}
@keyframes trdFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.trd-section-heading {
  font-family: var(--font-family-primary);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 18px;
}
.trd-tab-pane p {
  font-family: var(--font-family-primary);
  font-size: .96rem;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 16px;
}

/* ── Policy badges (Task 15) ───────────────────────────────── */
.trd-policy-badges {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.trd-policy-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 160px;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
}
.trd-policy-badge > i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}
.trd-policy-badge__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trd-policy-badge__text strong {
  font-family: var(--font-family-primary);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.trd-policy-badge__text span {
  font-family: var(--font-family-primary);
  font-size: .76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Highlights list ───────────────────────────────────────── */
.trd-highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trd-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-family-primary);
  font-size: .95rem;
  color: #374151;
  line-height: 1.6;
}
.trd-highlights-list li i {
  color: #16a34a;
  font-size: .9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Included / Excluded ───────────────────────────────────── */
.trd-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.trd-includes__heading {
  font-family: var(--font-family-primary);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.trd-includes__heading--in { color: #16a34a; }
.trd-includes__heading--ex { color: #dc2626; }

.trd-includes__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.trd-includes__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-family-primary);
  font-size: .9rem; color: #374151; line-height: 1.55;
}
.trd-includes__list li i {
  font-size: .85rem; margin-top: 3px; flex-shrink: 0;
}
.trd-includes__list li:not(.trd-includes__list--ex li) i { color: #16a34a; }
.trd-includes__list--ex li i { color: #dc2626; }

/* ── Itinerary accordion ───────────────────────────────────── */
.trd-itinerary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.trd-itinerary-header .trd-section-heading { margin: 0; }
.trd-itinerary__expand-all {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-family-primary);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.trd-itinerary__expand-all:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.trd-itinerary { display: flex; flex-direction: column; gap: 0; }
.trd-itinerary__item {
  border: 1px solid var(--border-color);
  border-top: none;
}
.trd-itinerary__item:first-child { border-top: 1px solid var(--border-color); border-radius: 10px 10px 0 0; }
.trd-itinerary__item:last-child { border-radius: 0 0 10px 10px; }

.trd-itinerary__header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  transition: background .2s;
}
.trd-itinerary__header:hover { background: var(--bg-light); }
.trd-itinerary__header[aria-expanded="true"] { background: var(--bg-light); }

.trd-itinerary__day {
  font-family: var(--font-family-primary);
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  background: rgba(231,149,32,.1);
  padding: 3px 10px;
  border-radius: 20px;
}
.trd-itinerary__route {
  font-family: var(--font-family-primary);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}
.trd-itinerary__meta {
  font-family: var(--font-family-primary);
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
}
.trd-itinerary__meta i { color: var(--primary-color); }
.trd-itinerary__arrow {
  font-size: .75rem;
  color: var(--text-muted);
  transition: transform .3s;
  flex-shrink: 0;
}
.trd-itinerary__header[aria-expanded="true"] .trd-itinerary__arrow {
  transform: rotate(180deg);
}
.trd-itinerary__body {
  display: none;
  padding: 0 20px 18px 20px;
  border-top: 1px solid var(--border-color);
}
.trd-itinerary__body.trd-itinerary__body--open { display: block; }
.trd-itinerary__body p {
  font-family: var(--font-family-primary);
  font-size: .9rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 12px 0 0;
}

/* ── Map ───────────────────────────────────────────────────── */
.trd-map-desc {
  font-family: var(--font-family-primary);
  font-size: .92rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.trd-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.trd-map-wrap iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}
.trd-map-credit {
  font-family: var(--font-family-primary);
  font-size: .75rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.trd-map-credit a { color: var(--secondary-color); }

/* ── FAQ accordion ─────────────────────────────────────────── */
.trd-faq { display: flex; flex-direction: column; gap: 0; }
.trd-faq__item {
  border: 1px solid var(--border-color);
  border-top: none;
}
.trd-faq__item:first-child { border-top: 1px solid var(--border-color); border-radius: 10px 10px 0 0; }
.trd-faq__item:last-child { border-radius: 0 0 10px 10px; }

.trd-faq__question {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; text-align: left;
  font-family: var(--font-family-primary);
  font-size: .95rem; font-weight: 600; color: var(--text-dark);
  transition: background .2s;
}
.trd-faq__question:hover,
.trd-faq__question[aria-expanded="true"] { background: var(--bg-light); }
.trd-faq__icon {
  font-size: .8rem; color: var(--primary-color);
  flex-shrink: 0; transition: transform .3s;
}
.trd-faq__question[aria-expanded="true"] .trd-faq__icon { transform: rotate(45deg); }

.trd-faq__answer {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid var(--border-color);
}
.trd-faq__answer.trd-faq__answer--open { display: block; }
.trd-faq__answer p {
  font-family: var(--font-family-primary);
  font-size: .9rem; line-height: 1.7; color: #4b5563;
  margin: 12px 0 0;
}

/* ── Reviews summary ───────────────────────────────────────── */
.trd-reviews-summary {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 24px; background: var(--bg-light);
  border: 1px solid var(--border-color); border-radius: 12px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.trd-reviews-summary__score {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; min-width: 80px;
}
.trd-reviews-summary__number {
  font-family: var(--font-family-primary);
  font-size: 2.8rem; font-weight: 800; color: var(--text-dark);
  line-height: 1;
}
.trd-reviews-summary__stars { font-size: 1.1rem; color: #f59e0b; }
.trd-reviews-summary__count {
  font-family: var(--font-family-primary);
  font-size: .75rem; color: var(--text-muted); text-align: center;
}
.trd-reviews-summary__bars { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 200px; }

.trd-rating-bar {
  display: grid; grid-template-columns: 70px 1fr 24px;
  align-items: center; gap: 10px;
}
.trd-rating-bar > span:first-child {
  font-family: var(--font-family-primary);
  font-size: .8rem; color: var(--text-muted); white-space: nowrap;
}
.trd-rating-bar > span:last-child {
  font-family: var(--font-family-primary);
  font-size: .8rem; color: var(--text-muted); text-align: right;
}
.trd-rating-bar__track {
  height: 7px; border-radius: 4px;
  background: var(--border-color); overflow: hidden;
}
.trd-rating-bar__fill {
  height: 100%; background: var(--primary-color);
  border-radius: 4px; transition: width .4s ease;
}

/* ── Review cards ──────────────────────────────────────────── */
.trd-review-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.trd-review-card {
  padding: 20px; border: 1px solid var(--border-color);
  border-radius: 12px; background: #fff;
}
.trd-review-card__header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.trd-review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-color); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-family-primary);
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.trd-review-card__meta {
  display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.trd-review-card__meta strong {
  font-family: var(--font-family-primary);
  font-size: .9rem; color: var(--text-dark);
}
.trd-review-card__meta span {
  font-family: var(--font-family-primary);
  font-size: .78rem; color: var(--text-muted);
}
.trd-review-card__stars { color: #f59e0b; font-size: .95rem; }
.trd-review-card p {
  font-family: var(--font-family-primary);
  font-size: .9rem; line-height: 1.7; color: #4b5563; margin: 0;
}

/* ── Review form ───────────────────────────────────────────── */
.trd-review-form {
  border: 1px solid var(--border-color); border-radius: 12px;
  padding: 24px; background: var(--bg-light);
}
.trd-review-form h3 {
  font-family: var(--font-family-primary);
  font-size: 1.1rem; font-weight: 700; color: var(--text-dark);
  margin: 0 0 20px;
}
.trd-review-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trd-form-group {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px;
}
.trd-form-group label {
  font-family: var(--font-family-primary);
  font-size: .82rem; font-weight: 600; color: var(--text-dark);
}
.trd-form-group input,
.trd-form-group textarea {
  font-family: var(--font-family-primary);
  font-size: .9rem; color: var(--text-dark);
  padding: 10px 14px; border: 1px solid var(--border-color);
  border-radius: 8px; background: #fff; outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.trd-form-group input:focus,
.trd-form-group textarea:focus { border-color: var(--primary-color); }

.trd-star-rating { display: flex; gap: 4px; }
.trd-star-rating__star {
  background: none; border: none; font-size: 1.6rem;
  color: #d1d5db; cursor: pointer; padding: 0; line-height: 1;
  transition: color .15s;
}
.trd-star-rating__star.trd-star--active,
.trd-star-rating__star:hover { color: #f59e0b; }

.trd-review-form__submit {
  background: var(--primary-color); color: #fff;
  border: none; padding: 12px 28px; border-radius: 8px;
  font-family: var(--font-family-primary);
  font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: opacity .2s;
}
.trd-review-form__submit:hover { opacity: .88; }
.trd-review-form__thanks {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-family: var(--font-family-primary);
  font-size: .9rem; color: #16a34a; font-weight: 500;
}
.trd-review-form__thanks i { font-size: 1rem; }

/* ── Booking sidebar card ──────────────────────────────────── */
.trd-booking-card {
  border: 1px solid var(--border-color); border-radius: 16px;
  padding: 24px; background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.trd-booking-card__price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.trd-booking-card__from {
  font-family: var(--font-family-primary);
  font-size: .8rem; color: var(--text-muted);
}
.trd-booking-card__amount {
  font-family: var(--font-family-primary);
  font-size: 1.9rem; font-weight: 800; color: var(--primary-color);
}
.trd-booking-card__per {
  font-family: var(--font-family-primary);
  font-size: .8rem; color: var(--text-muted);
}

.trd-booking-card__field {
  margin-bottom: 16px;
}
.trd-booking-card__field label {
  display: block;
  font-family: var(--font-family-primary);
  font-size: .8rem; font-weight: 600; color: var(--text-dark);
  margin-bottom: 6px;
}
.trd-booking-card__field label i { color: var(--primary-color); margin-right: 4px; }
.trd-booking-card__input {
  width: 100%; padding: 10px 12px;
  font-family: var(--font-family-primary);
  font-size: .9rem; color: var(--text-dark);
  border: 1px solid var(--border-color); border-radius: 8px;
  outline: none; transition: border-color .2s;
  box-sizing: border-box;
}
.trd-booking-card__input:focus { border-color: var(--primary-color); }

.trd-stepper {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border-color); border-radius: 8px;
  overflow: hidden; width: fit-content;
}
.trd-stepper__btn {
  background: var(--bg-light); border: none;
  width: 40px; height: 40px;
  font-size: 1.1rem; font-weight: 500; color: var(--text-dark);
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.trd-stepper__btn:hover { background: var(--border-color); }
.trd-stepper__val {
  min-width: 48px; text-align: center;
  font-family: var(--font-family-primary);
  font-size: .95rem; font-weight: 600; color: var(--text-dark);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  line-height: 40px;
}

.trd-booking-card__total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; margin: 4px 0 16px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-family-primary);
}
.trd-booking-card__total span:first-child {
  font-size: .85rem; color: var(--text-muted); font-weight: 500;
}
.trd-booking-card__total span:last-child {
  font-size: 1.3rem; font-weight: 800; color: var(--text-dark);
}

.trd-booking-card__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: var(--primary-color); color: #fff;
  border-radius: 10px; text-decoration: none;
  font-family: var(--font-family-primary);
  font-size: 1rem; font-weight: 700;
  transition: opacity .2s; margin-bottom: 10px;
}
.trd-booking-card__cta:hover { opacity: .88; }

.trd-booking-card__whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: #25d366; color: #fff;
  border-radius: 10px; text-decoration: none;
  font-family: var(--font-family-primary);
  font-size: .9rem; font-weight: 600;
  transition: opacity .2s; margin-bottom: 20px;
}
.trd-booking-card__whatsapp:hover { opacity: .88; }
.trd-booking-card__whatsapp i { font-size: 1.1rem; }

.trd-booking-card__info {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.trd-booking-card__info li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-family-primary); font-size: .85rem; color: #374151;
}
.trd-booking-card__info li i { color: var(--primary-color); width: 16px; text-align: center; }
.trd-booking-card__info li span { color: var(--text-muted); margin-right: 4px; }

.trd-booking-card__custom-quote {
  display: block; text-align: center;
  font-family: var(--font-family-primary);
  font-size: .82rem; color: var(--text-muted); text-decoration: none;
}
.trd-booking-card__custom-quote:hover { color: var(--secondary-color); }
.trd-booking-card__custom-quote strong { color: var(--secondary-color); }

/* ── Related treks section ─────────────────────────────────── */
.trd-related {
  padding: 50px 0 60px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
}
.trd-related__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.trd-related__title {
  font-family: var(--font-family-primary);
  font-size: 1.5rem; font-weight: 700; color: var(--text-dark);
  margin: 0;
}
.trd-related__view-all {
  font-family: var(--font-family-primary);
  font-size: .85rem; font-weight: 600; color: #fff;
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s, color .2s;
}
.trd-related__view-all:hover {
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
}

/* ── Carousel wrapper ── */
.trd-related__carousel-wrap {
  position: relative;
  padding: 0 48px;
}
.trd-related__overflow {
  overflow: hidden;
}
.trd-related__track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.trd-related__slide {
  flex-shrink: 0;
  padding: 0 10px;
  box-sizing: border-box;
}
/* Nav arrows */
.trd-related__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--text-dark);
  transition: background .2s, color .2s, border-color .2s;
}
.trd-related__nav:hover:not(:disabled) {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.trd-related__nav:disabled { opacity: .35; cursor: default; }
.trd-related__prev { left: 0; }
.trd-related__next { right: 0; }
/* Dots */
.trd-related__dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 22px;
}
.trd-related__dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: #d1d5db;
  border: none; cursor: pointer; padding: 0;
  transition: background .25s, width .25s;
}
.trd-related__dot--active {
  width: 24px;
  background: var(--primary-color);
}

/* ── Responsive for layout ─────────────────────────────────── */
@media (max-width: 1024px) {
  .trd-layout { flex-direction: column; }
  .trd-main { width: 100%; min-width: 0; overflow-x: hidden; }
  .trd-sidebar { width: 100%; position: static; }
  .trd-booking-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0 24px;
    align-items: start;
  }
  .trd-booking-card__price { grid-column: 1 / -1; }
  .trd-booking-card__cta { grid-column: 1 / -1; }
  .trd-booking-card__whatsapp { grid-column: 1 / -1; }
  .trd-booking-card__info { grid-column: 1 / -1; border-top: 1px solid var(--border-color); }
  .trd-booking-card__custom-quote { grid-column: 1 / -1; }
  .trd-booking-card__total { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .trd-includes { grid-template-columns: 1fr; gap: 24px; }
  .trd-related__carousel-wrap { padding: 0 36px; }
  .trd-reviews-summary { flex-direction: column; }
  .trd-review-form__row { grid-template-columns: 1fr; }
  .trd-policy-badges { flex-direction: column; }
  .trd-itinerary__meta { display: none; }
  .trd-booking-card { display: block; }
}
@media (max-width: 640px) {
  .trd-detail-section { padding: 24px 0 40px; }
  .trd-tabs__btn { padding: 10px 12px; font-size: .82rem; }
  .trd-related__carousel-wrap { padding: 0 36px; }
}

/* ============================================================
   MEALS BLOCK (Itinerary day bodies)
   ============================================================ */
.trd-day-meals {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}
.trd-day-meals__label {
  display: block;
  font-family: var(--font-family-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.trd-day-meals__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  flex-direction: column;
}
.trd-day-meals__list li {
  font-family: var(--font-family-primary);
  font-size: .88rem;
  color: #374151;
  padding-left: 18px;
  position: relative;
}
.trd-day-meals__list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--primary-color);
  font-weight: 700;
}

/* ============================================================
   MOBILE OVERFLOW FIXES
   ============================================================ */

/* Itinerary header: allow route text to wrap, hide meta on tiny screens */
@media (max-width: 480px) {
  .trd-itinerary__header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .trd-itinerary__route {
    font-size: .88rem;
    flex: 1 1 60%;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
  }
  .trd-itinerary__meta { display: none; }
  .trd-itinerary__arrow { margin-left: auto; }
}

/* Feature bar: ensure no nowrap overflow on tiny screens */
@media (max-width: 480px) {
  .trd-feature__label,
  .trd-feature__value {
    white-space: normal;
    word-break: break-word;
  }
  .trd-feature { padding: 14px 12px; gap: 10px; }
  .trd-feature__icon { width: 32px; height: 32px; font-size: .8rem; }
}

/* Info bar: always wrap, no nowrap on small screens */
@media (max-width: 480px) {
  .trd-info-bar__meta,
  .trd-info-bar__price,
  .trd-info-bar__rating { white-space: normal; }
  .trd-info-bar__divider { display: none; }
}

/* Booking form row: single column on small screens */
@media (max-width: 480px) {
  .trd-review-form__row { grid-template-columns: 1fr; }
  .trd-booking-card { padding: 18px; }
  .trd-booking-card__amount { font-size: 1.6rem; }
}

/* Includes: stack on very small screens */
@media (max-width: 480px) {
  .trd-includes { grid-template-columns: 1fr; gap: 20px; }
}

/* Related grid: force single column below 480px */
@media (max-width: 480px) {
  .trd-related__carousel-wrap { padding: 0 36px; }
  .trd-related { padding: 32px 0 40px; }
  .trd-related__carousel-wrap { padding: 0 32px; }
}
