/* =============================================
   TOUR DETAIL PAGE  —  td-* namespace
   ============================================= */

.td-page {
  --tour-hero-outer-x: max(20px, calc((100vw - 1200px) / 2 + 20px));
  --tour-hero-radius: 28px;
  background: var(--color-bg);
  min-height: 100vh;
}

/* =============================================
   Hero
   ============================================= */
.td-hero {
  position: relative;
  min-height: 0;
  overflow: visible;
  margin: 0 var(--tour-hero-outer-x);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(24,84,103,0.96), rgba(31,111,139,0.86)),
    var(--color-primary);
  border-bottom-right-radius: var(--tour-hero-radius);
  border-bottom-left-radius: var(--tour-hero-radius);
}

.td-hero::before,
.td-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
  pointer-events: none;
}

.td-hero::before {
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 18% 40%, rgba(255,255,255,0.28), transparent 34%),
    radial-gradient(ellipse at 78% 56%, rgba(255,255,255,0.18), transparent 38%),
    repeating-linear-gradient(155deg, transparent 0 34px, rgba(255,255,255,0.1) 34px 35px, transparent 35px 74px);
  transform: translate3d(0,0,0);
}

.td-hero::after {
  opacity: 0.08;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.08));
}

.td-hero__sentinel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
}

.td-hero.is-compact .td-hero-compact {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0,0,0);
  pointer-events: auto;
}

.td-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 8px 20px 5px;
  display: grid;
  gap: 9px;
}

.td-hero__meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.td-hero__label {
  min-width: 0;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-hero__title {
  max-width: 860px;
  margin: 18px auto 23px;
  color: #fff;
  font-size: clamp(34px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: 0;
  text-align: center;
}

.td-hero__rating {
  justify-self: center;
  display: flex;
  align-items: center;
  min-width: max-content;
  color: #fff;
}

.td-hero__region {
  min-width: 0;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-hero__rating .tour-rating-head {
  gap: 6px;
}

.td-hero__booking-row {
  display: grid;
  grid-template-columns: max-content minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.td-hero__price {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  color: #fff;
  white-space: nowrap;
}

.td-hero__price-prefix {
  color: rgba(255,255,255,0.66);
  font-size: 13px;
  font-weight: 700;
}

.td-hero__price-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--color-accent);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

.td-hero__cta {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 28px;
  border-radius: 12px;
  box-shadow: none;
  white-space: nowrap;
}

.td-hero__facts-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(10px, 2.2vw, 34px);
  min-height: 0;
  width: 100%;
  margin: 0 auto;
  padding: 4px 0 5px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.84);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.td-hero__fact {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-hero__fact-label {
  flex: 0 0 auto;
  color: rgba(255,255,255,0.68);
}

.td-hero__fact i,
.td-hero__region i {
  flex: 0 0 auto;
  color: var(--color-accent);
}

.td-hero__inner .tour-rating-head { margin: 0; }
.td-hero__inner .tour-rating-numeric { color: rgba(255,255,255,0.82); }
.td-hero__inner .tour-star-wrap {
  font-size: 1.02rem;
  text-shadow:
    -1px 0 var(--color-primary),
    1px 0 var(--color-primary),
    0 -1px var(--color-primary),
    0 1px var(--color-primary),
    0 0 3px rgba(255,255,255,0.92),
    0 1px 3px rgba(0,0,0,0.74);
}
.td-hero__inner .tour-star--empty { color: rgba(255,255,255,0.56); }
.td-hero__inner .tour-star--fill {
  color: var(--color-accent);
  text-shadow:
    -1px 0 var(--color-primary),
    1px 0 var(--color-primary),
    0 -1px var(--color-primary),
    0 1px var(--color-primary),
    0 0 4px rgba(255,255,255,0.94),
    0 0 10px rgba(255,255,255,0.56),
    0 1px 3px rgba(0,0,0,0.78);
}

.td-hero-compact {
  position: fixed;
  top: var(--header-height);
  left: var(--tour-hero-outer-x);
  right: var(--tour-hero-outer-x);
  z-index: 950;
  min-height: 50px;
  color: #fff;
  background: var(--gradient-surface-dark-blue);
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0,-8px,0);
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(.22,1,.36,1), transform 0.24s cubic-bezier(.22,1,.36,1), visibility 0.24s cubic-bezier(.22,1,.36,1);
}

.td-hero-compact__inner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 4px 8px;
}

.td-hero-compact__back,
.td-hero-compact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  text-decoration: none;
  cursor: pointer;
}

.td-hero-compact__back {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.td-hero-compact__cta {
  color: #fff;
  background: var(--color-accent);
  font-size: 16px;
}

.td-hero-compact__title {
  min-width: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-hero.is-title-flipping .td-hero__title,
.td-hero.is-title-flipping .td-hero-compact__title {
  opacity: 0;
}

.td-hero.is-compact.is-transitioning .td-hero-compact {
  pointer-events: none;
}

.td-hero-title-clone {
  position: fixed;
  z-index: 960;
  margin: 0;
  color: #fff;
  font: inherit;
  line-height: 1.07;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform, opacity;
}

.td-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 32px;
  position: relative;
  z-index: 4;
  padding-top: 18px;
  padding-bottom: 70px;
  align-items: start;
}

.td-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

.td-section,
.td-final-cta {
  background: var(--color-bg);
  border-radius: 18px;
}

.td-section {
  padding: 0;
}

.td-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.td-section-head .td-section-title {
  margin-bottom: 0;
}

.td-text-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(31,111,139,0.16);
  border-radius: 10px;
  color: var(--color-primary);
  background: rgba(255,255,255,0.64);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.td-text-button:hover {
  border-color: rgba(31,111,139,0.3);
  background: rgba(31,111,139,0.08);
}

/* =============================================
   Gallery
   ============================================= */
.td-gallery {
  display: grid;
  gap: 12px;
  width: 100%;
}

.td-gallery__stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.td-gallery__main-link {
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.td-gallery__main-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.td-gallery__main-link:hover .td-gallery__main-img { transform: scale(1.015); }

.td-gallery__meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.td-gallery__arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.td-gallery__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(5,21,19,0.34);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.td-gallery__arrow:hover {
  background: rgba(5,21,19,0.52);
}

.td-gallery__count,
.td-gallery__all {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 10px;
  color: #fff;
  background: rgba(5,21,19,0.42);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.td-gallery__all {
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.2);
  font: inherit;
  line-height: 1;
  appearance: none;
  cursor: pointer;
}

.td-thumbs {
  display: flex;
  gap: 7px;
  padding: 0 1px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.td-thumbs::-webkit-scrollbar { display: none; }

.td-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: var(--color-bg-soft);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.18s, transform 0.18s;
}
.td-thumb:hover { border-color: var(--color-primary-light); transform: translateY(-1px); }
.td-thumb.is-active { border-color: var(--color-primary); }
.td-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.td-gallery__hidden-link { display: none; }

/* =============================================
   Booking sidebar
   ============================================= */
.td-booking-sidebar {
  min-width: 0;
}

.td-booking-card {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  max-height: calc(100vh - var(--header-height) - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(31,111,139,0.16);
  border-radius: 18px;
  background: var(--color-bg);
  box-shadow: 0 14px 34px rgba(17,17,17,0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.td-booking-card__label {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.td-booking-card__price {
  color: var(--color-text);
  display: grid;
  gap: 2px;
}
.td-booking-card__price span {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-secondary);
}
.td-booking-card__price strong {
  color: var(--color-accent-hover);
  font-size: 28px;
  line-height: 1.08;
}
.td-booking-card__price small {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.td-booking-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.td-booking-card__facts {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.td-booking-card__facts span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.td-booking-card__facts i { color: var(--color-primary); }

.td-booking-card__cta,
.td-booking-card__secondary {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
}

.td-booking-card__note {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

/* =============================================
   Video
   ============================================= */
.td-video {
  display: grid;
  gap: 0;
  max-width: 760px;
}

.td-video-ratio {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
}
.td-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.td-video__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.td-video__thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.td-video__preview:hover .td-video__thumb {
  transform: scale(1.03);
  opacity: 0.72;
}

.td-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: rgba(242,153,74,0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

/* =============================================
   Overview and quick facts
   ============================================= */
.td-lead {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.72;
  color: var(--color-text);
  margin: 0 0 20px;
}

.td-lead--muted,
.detail-lead--muted {
  color: var(--color-text-secondary);
}

.td-richtext {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.86;
  color: var(--color-text);
}
.td-richtext p { margin: 0 0 14px; }
.td-richtext p:last-child { margin-bottom: 0; }
.td-richtext--sm {
  font-size: 14px;
  line-height: 1.75;
}

.td-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 12px;
  text-align: left;
}

.td-subsection-title {
  margin: 22px 0 12px;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 800;
}

.td-help-card,
.detail-help-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(31,111,139,0.12);
  background: var(--color-bg-soft);
}

.td-help-card strong,
.detail-help-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-primary);
  font-weight: 900;
}

.td-help-card p,
.detail-help-card p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.td-overview__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  max-width: 760px;
  margin: 0 0 24px;
  padding: 0;
}

.td-overview__fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  min-width: 0;
}

.td-overview__fact i {
  grid-row: 1 / span 2;
  width: 22px;
  color: var(--color-primary);
  font-size: 16px;
}

.td-overview__fact span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.td-overview__fact strong {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.td-overview__text-wrap {
  position: relative;
  max-width: 760px;
  max-height: 15.8em;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.td-overview__text-wrap.is-expanded {
  max-height: var(--overview-expanded-height, 1200px);
}

.td-overview__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--color-bg) 82%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.td-overview__text-wrap.is-collapsible:not(.is-expanded) .td-overview__fade {
  opacity: 1;
}

.td-overview__toggle {
  display: grid;
  grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
  align-items: center;
  gap: 12px;
  width: min(100%, 420px);
  min-height: 40px;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.td-overview__toggle::before,
.td-overview__toggle::after {
  content: "";
  display: block;
  height: 1px;
  background: rgba(31,111,139,0.2);
}

.td-overview__toggle[hidden] {
  display: none;
}

.td-overview__toggle [data-collapse-label] {
  display: none;
}

.td-overview__toggle[aria-expanded="true"] [data-expand-label] {
  display: none;
}

.td-overview__toggle[aria-expanded="true"] [data-collapse-label] {
  display: inline;
}

/* =============================================
   Expandable content
   ============================================= */
.td-expandable {
  position: relative;
  max-width: 760px;
  overflow: visible;
}

.td-expandable.is-ready.is-collapsed {
  max-height: var(--expandable-collapsed-height, 620px);
  overflow: hidden;
}

.td-expandable.is-ready {
  transition: max-height 0.28s ease;
}

.td-expandable.is-expanded {
  max-height: var(--expandable-expanded-height, 1600px);
}

.td-expandable__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--color-bg) 82%);
  transition: opacity 0.18s ease;
}

.td-expandable.is-ready.is-collapsed .td-expandable__fade {
  opacity: 1;
}

.td-expandable__toggle {
  display: grid;
  grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
  align-items: center;
  gap: 12px;
  width: min(100%, 420px);
  min-height: 42px;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.td-expandable__toggle::before,
.td-expandable__toggle::after {
  content: "";
  display: block;
  height: 1px;
  background: rgba(31,111,139,0.2);
}

.td-expandable__toggle[hidden] {
  display: none;
}

.td-expandable__toggle [data-collapse-label] {
  display: none;
}

.td-expandable__toggle[aria-expanded="true"] [data-expand-label] {
  display: none;
}

.td-expandable__toggle[aria-expanded="true"] [data-collapse-label] {
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  .td-expandable.is-ready {
    transition: none;
  }
}

/* =============================================
   Itinerary
   ============================================= */
.td-itinerary-section {
  max-width: 820px;
}

.td-itinerary-section .td-section-title {
  margin-bottom: 14px;
}

.td-itinerary-head .td-section-title {
  margin-bottom: 0;
}

.td-itinerary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.td-itinerary-list {
  display: grid;
  gap: 10px;
}

.td-itinerary-item {
  border: 1px solid rgba(31,111,139,0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.58);
  overflow: hidden;
}

.td-itinerary-item[open] {
  border-color: rgba(31,111,139,0.28);
  background: rgba(255,255,255,0.78);
}

.td-itinerary-item__summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.td-itinerary-item__summary::-webkit-details-marker {
  display: none;
}

.td-itinerary-item__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.td-itinerary-item__heading {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.td-itinerary-item__time {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.td-itinerary-item__title {
  min-width: 0;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.td-itinerary-item__icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(31,111,139,0.1);
}

.td-itinerary-item__icon::before,
.td-itinerary-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: translate(-50%, -50%);
}

.td-itinerary-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.td-itinerary-item[open] .td-itinerary-item__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.td-itinerary-item__body {
  padding: 0 16px 16px 98px;
}

.td-itinerary-item__body > :first-child {
  margin-top: 0;
}

.td-itinerary__text :where(h2, h3, h4) {
  margin: 20px 0 8px;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.28;
}

.td-itinerary__text :where(ul, ol),
.td-richtext--included :where(ul, ol),
.td-richtext--not-included :where(ul, ol) {
  display: grid;
  gap: 7px;
  margin: 10px 0 14px;
  padding-left: 0;
  list-style: none;
}

.td-itinerary__text li,
.td-richtext--included li,
.td-richtext--not-included li {
  position: relative;
  padding-left: 22px;
  overflow-wrap: anywhere;
}

.td-itinerary__text li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}

.td-richtext :where(a) {
  color: var(--color-primary);
  text-underline-offset: 0.18em;
}

.td-richtext :where(table) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

@media (max-width: 640px) {
  .td-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .td-itinerary-actions {
    width: 100%;
    justify-content: stretch;
  }

  .td-itinerary-actions .td-text-button {
    flex: 1 1 0;
    justify-content: center;
  }

  .td-itinerary-item__summary {
    grid-template-columns: minmax(0, 1fr) 22px;
    gap: 10px;
    padding: 12px;
  }

  .td-itinerary-item__marker {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 0;
  }

  .td-itinerary-item__body {
    padding: 0 12px 14px;
  }
}

/* =============================================
   Inclusions
   ============================================= */
.td-inclusions {
  max-width: 860px;
}

.td-inclusions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.td-accordion {
  min-width: 0;
  border: 1px solid rgba(31,111,139,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.42);
}

.td-accordion__heading {
  margin: 0;
}

.td-accordion__trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.td-accordion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(31,111,139,0.1);
  font-size: 12px;
}

.td-accordion__icon--muted {
  color: var(--color-text-secondary);
  background: rgba(17,17,17,0.06);
}

.td-accordion__chevron {
  color: var(--color-text-secondary);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.td-accordion.is-open .td-accordion__chevron {
  transform: rotate(180deg);
}

.td-accordion__panel {
  padding: 0 14px 14px 48px;
}

.td-accordion.is-ready:not(.is-open) .td-accordion__panel {
  display: none;
}

.td-richtext--included li::before,
.td-richtext--not-included li::before {
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
}

.td-richtext--included li::before {
  content: "\f00c";
  color: var(--color-primary);
}

.td-richtext--not-included li::before {
  content: "\f068";
  color: var(--color-text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .td-accordion__chevron {
    transition: none;
  }
}

.td-after-content {
  display: flex;
  flex-direction: column;
  gap: 62px;
  padding-bottom: 82px;
}

.td-lower-section {
  min-width: 0;
}

.td-lower-head {
  margin-bottom: 18px;
}

.td-lower-title {
  margin: 0;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.18;
}

/* =============================================
   Reviews
   ============================================= */
.td-reviews {
  padding-top: 34px;
  border-top: 1px solid var(--color-border);
}

.td-reviews__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.td-reviews__summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.td-reviews__rating,
.td-review-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text);
  font-weight: 850;
}

.td-reviews__rating i,
.td-review-card__rating i {
  color: var(--color-accent);
}

.td-reviews__all {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.td-reviews__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 16px;
}

.td-review-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(31,111,139,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.44);
}

.td-review-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.td-review-card__person {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.td-review-card__person strong {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.td-review-card__person time {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.td-review-card__rating {
  flex: 0 0 auto;
  font-size: 13px;
}

.td-review-card__text {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.td-review-card__text p {
  margin: 0 0 10px;
}

.td-review-card__text p:last-child,
.td-review-card__reply p:last-child {
  margin: 0;
}

.td-review-card__more summary {
  display: grid;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

.td-review-card__more summary::-webkit-details-marker {
  display: none;
}

.td-review-card__more-label {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 10px;
  width: min(100%, 320px);
  margin: 2px auto 0;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.td-review-card__more-label::before,
.td-review-card__more-label::after {
  content: "";
  display: block;
  height: 1px;
  background: rgba(31,111,139,0.18);
}

.td-review-card__more[open] summary {
  margin-bottom: 8px;
}

.td-review-card__text--full {
  padding-top: 8px;
  border-top: 1px solid rgba(31,111,139,0.1);
}

.td-review-card__image {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 10px;
}

.td-review-card__image img {
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.td-review-card__reply {
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(31,111,139,0.12);
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.td-review-card__reply strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary);
  font-weight: 850;
}

.td-reviews__empty {
  max-width: 680px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(31,111,139,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.42);
}

.td-reviews__empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--color-text);
  font-weight: 850;
}

.td-reviews__empty p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.td-review-form {
  max-width: 760px;
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
}

.td-review-form summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--color-primary);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.td-review-form summary::-webkit-details-marker {
  display: none;
}

.td-review-form__body {
  padding-top: 6px;
}

/* =============================================
   Related tours rail
   ============================================= */
.td-lower-head--with-controls,
.td-content-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.td-horizontal-rail {
  display: flex;
  gap: 16px;
  margin: -3px;
  padding: 3px 3px 12px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.td-horizontal-rail__item {
  flex: 0 0 clamp(300px, 32vw, 380px);
  min-width: 0;
  scroll-snap-align: start;
}

.td-horizontal-rail__item > :is(.tour-card, .content-list-card, .announcement-list-card) {
  height: 100%;
}

/* =============================================
   Horizontal rail controls
   ============================================= */
.td-rail-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.td-rail-controls[hidden] {
  display: none;
}

.td-rail-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31,111,139,0.16);
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(255,255,255,0.66);
  cursor: pointer;
}

.td-rail-control:disabled {
  cursor: default;
  opacity: 0.38;
}

/* =============================================
   Related content
   ============================================= */
.td-content-groups {
  display: grid;
  gap: 28px;
}

.td-content-group {
  min-width: 0;
}

.td-content-group__head {
  margin-bottom: 12px;
}

.td-content-group__head h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 850;
}

.td-horizontal-rail--content .td-horizontal-rail__item {
  flex-basis: clamp(260px, 30vw, 350px);
}

.tour-detail-page .content-list-card--compact .content-list-card__media img {
  aspect-ratio: 16 / 10;
  height: auto;
}

.tour-detail-page .content-list-card--compact .content-list-card__body {
  padding: 15px;
}

.tour-detail-page .content-list-card--compact .content-card-title {
  margin-bottom: 8px;
  font-size: 17px;
}

.tour-detail-page .content-list-card--compact .content-card-meta:last-child {
  margin-top: 4px;
}

.tour-detail-page .content-list-card--compact .content-card-readmore {
  font-size: 13px;
}

.tour-detail-page .td-content-group .announcement-list-card {
  min-height: 190px;
  padding: 18px;
  border-left-width: 3px;
  border-radius: 18px;
}

/* =============================================
   Share section
   ============================================= */
.td-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.td-share__copy p {
  margin: 6px 0 0;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.td-share__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.td-share__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(31,111,139,0.16);
  border-radius: 999px;
  color: var(--color-text);
  background: rgba(255,255,255,0.54);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.td-share__button[hidden] {
  display: none;
}

.td-share__button i {
  color: var(--color-primary);
}

.td-share__button--native {
  display: none;
}

.td-share__status {
  min-height: 18px;
  grid-column: 1 / -1;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}

/* =============================================
   Final CTA
   ============================================= */
.td-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: 18px;
  color: #fff;
  background: var(--gradient-surface-dark-blue);
}

.td-final-cta h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 24px;
  font-weight: 850;
}

.td-final-cta p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

.td-final-cta__button {
  min-width: 180px;
  justify-content: center;
  border-radius: 12px;
}

.td-mobile-booking-bar {
  display: none;
}

/* =============================================
   Lower responsive
   ============================================= */
@media (max-width: 768px) {
  .tour-detail-page {
    padding-bottom: 82px;
  }

  .td-after-content {
    gap: 42px;
    padding-right: 16px;
    padding-left: 16px;
    padding-bottom: 96px;
  }

  .td-lower-title {
    font-size: 20px;
  }

  .td-reviews {
    padding-top: 28px;
  }

  .td-reviews__head {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .td-reviews__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .td-review-card {
    padding: 14px;
    border-radius: 14px;
  }

  .td-review-card--extra {
    display: none;
  }

  .td-lower-head--with-controls,
  .td-content-group__head {
    align-items: flex-start;
  }

  .td-rail-controls {
    display: none;
  }

  .td-horizontal-rail {
    display: flex;
    gap: 12px;
    margin-right: -16px;
    padding-right: 16px;
  }

  .td-horizontal-rail__item,
  .td-horizontal-rail--content .td-horizontal-rail__item {
    flex-basis: min(84vw, 330px);
  }

  .td-content-groups {
    gap: 24px;
  }

  .td-share {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .td-share__actions {
    justify-content: flex-start;
  }

  .td-share__button {
    width: 44px;
    padding: 0;
  }

  .td-share__button--native:not([hidden]) {
    display: inline-flex;
  }

  .td-share__button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .td-final-cta {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .td-final-cta h2 {
    font-size: 21px;
  }

  .td-final-cta__button {
    width: 100%;
  }

  .td-mobile-booking-bar {
    position: fixed;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 980;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto) 46px;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(31,111,139,0.16);
    border-radius: 16px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 14px 34px rgba(17,17,17,0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .td-mobile-booking-bar__price {
    min-width: 0;
    display: grid;
    gap: 1px;
    color: var(--color-text);
    line-height: 1.1;
  }

  .td-mobile-booking-bar__price span {
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 800;
  }

  .td-mobile-booking-bar__price strong {
    min-width: 0;
    color: var(--color-accent-hover);
    font-size: 17px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .td-mobile-booking-bar__cta,
  .td-mobile-booking-bar__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
  }

  .td-mobile-booking-bar__cta {
    padding: 0 14px;
    color: #fff;
    background: var(--color-accent);
  }

  .td-mobile-booking-bar__whatsapp {
    width: 46px;
    color: #fff;
    background: #22c55e;
    font-size: 19px;
  }
}

.tour-detail-page .td-hero a:focus-visible,
.tour-detail-page .td-hero button:focus-visible,
.tour-detail-page .td-gallery a:focus-visible,
.tour-detail-page .td-gallery button:focus-visible,
.tour-detail-page .td-overview__toggle:focus-visible,
.tour-detail-page .td-video__preview:focus-visible,
.tour-detail-page .td-booking-card a:focus-visible,
.tour-detail-page .td-reviews a:focus-visible,
.tour-detail-page .td-review-form summary:focus-visible,
.tour-detail-page .td-review-card__more summary:focus-visible,
.tour-detail-page .td-related a:focus-visible,
.tour-detail-page .td-related button:focus-visible,
.tour-detail-page .td-horizontal-rail:focus-visible,
.tour-detail-page .td-share a:focus-visible,
.tour-detail-page .td-share button:focus-visible,
.tour-detail-page .td-final-cta a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.service-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.service-detail-summary div {
  padding: 16px;
  border: 1px solid rgba(242,153,74,0.2);
  border-radius: 16px;
  background: rgba(242,153,74,0.08);
}

.service-detail-summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-detail-summary strong {
  color: var(--color-text);
  overflow-wrap: anywhere;
}

/* =============================================
   SERVICE DETAIL
   ============================================= */
.detail-section {
  padding: 54px 0 70px;
  background: var(--color-bg);
}

.detail-container {
  max-width: 1120px;
}

.detail-backlink-row {
  margin: 0 0 16px;
}

.detail-backlink {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.detail-backlink:hover {
  color: var(--color-accent-hover);
}

.detail-title {
  margin: 0 0 14px;
  color: var(--color-text);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.16;
}

.detail-main-card {
  padding: 24px;
  overflow: hidden;
  border-color: rgba(242,153,74,0.18);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17,17,17,0.06);
}

.detail-main-layout {
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-media-panel {
  min-width: 0;
}

.detail-main-image-link {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-bg-soft);
}

.detail-main-image,
.detail-hero-image {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.detail-info-panel {
  min-width: 0;
}

.detail-info-panel h3 {
  margin-top: 0;
  color: var(--color-primary);
  font-size: 22px;
}

.detail-info-panel .price {
  margin: 18px 0;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 900;
}

.service-contact-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  border-color: rgba(242,153,74,0.18);
  box-shadow: 0 12px 30px rgba(17,17,17,0.05);
}

.service-contact-title {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 900;
}

.service-provider-name,
.service-contact-note,
.service-contact-direct {
  margin: 0 0 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.service-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-contact-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-contact-btn-whatsapp {
  background: #25d366;
}

.service-contact-btn-telegram {
  background: #229ed9;
}

.service-contact-link {
  display: inline-flex;
  margin-left: 8px;
  color: var(--color-primary);
  font-weight: 800;
}

.service-practical-block,
.service-next-step {
  margin: 18px 0;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(242,153,74,0.18);
  background: rgba(242,153,74,0.07);
}

.service-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 26px;
  padding: 34px;
  border: 1px solid rgba(242,153,74,0.2);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,248,239,0.96), rgba(255,255,255,0.98)),
    var(--color-bg);
  box-shadow: 0 18px 48px rgba(17,17,17,0.07);
}

.service-hero-panel__kicker {
  margin: 0 0 8px;
  color: var(--color-accent-hover);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-hero-panel__lead {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

.service-hero-panel .service-detail-summary {
  margin: 0;
  grid-template-columns: 1fr;
}

.service-hero-panel__cta {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(242,153,74,0.16);
  border-radius: 20px;
  background: rgba(255,248,239,0.7);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-thumb-button {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-bg);
  cursor: pointer;
}

.detail-thumb-button.is-active {
  border-color: var(--color-accent);
}

.detail-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-final-cta {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid rgba(242,153,74,0.22);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(242,153,74,0.14), rgba(31,111,139,0.08));
}

.service-final-cta p {
  margin: 0 0 6px;
  color: var(--color-accent-hover);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.service-final-cta h2 {
  margin: 0 0 18px;
  color: var(--color-text);
  font-size: 28px;
}

.service-final-cta__actions,
.reviews-conversion__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-practical-block p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.service-next-step ol {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* =============================================
   RATING  (used inside .td-hero__inner)
   ============================================= */
.tour-rating-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.tour-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.tour-star-wrap {
  position: relative;
  display: block;
  width: 1.15em;
  height: 1em;
  font-size: 1.1rem;
}
.tour-star {
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
  pointer-events: none;
}
.tour-star--empty { position: relative; color: rgba(255,255,255,0.3); }
.tour-star--fill  { color: var(--color-accent); overflow: hidden; white-space: nowrap; }
.tour-rating-numeric { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }

/* =============================================
   GALLERY + REVIEWS  (below body grid)
   ============================================= */
.detail-gallery-title,
.reviews-section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  margin: 48px 0 24px;
  text-align: left;
}

.reviews-page-head {
  max-width: none;
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid rgba(31,111,139,0.12);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(31,111,139,0.1), rgba(242,153,74,0.1)),
    var(--color-bg);
}

.reviews-page-head .reviews-section-title {
  margin: 4px 0 10px;
}

.reviews-page-head p:last-child {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.reviews-page-kicker {
  margin: 0;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.detail-gallery-card { overflow: hidden; border-radius: 14px; }
.detail-gallery-image { height: 180px; }

.reviews-section { margin-top: 0; padding-top: 48px; border-top: 1px solid var(--color-border); margin-top: 20px; }
.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.review-card {
  padding: 30px;
  background: var(--color-bg);
  border-radius: 26px;
  border: 1px solid rgba(31,111,139,0.12);
  box-shadow: 0 10px 26px rgba(17,17,17,0.05);
}

.review-card::before {
  content: "“";
  display: block;
  height: 28px;
  color: rgba(31,111,139,0.22);
  font-size: 56px;
  font-weight: 900;
  line-height: 0.7;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.review-author  { font-size: 16px; font-weight: 800; color: var(--color-text); }
.review-rating  {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(242,153,74,0.12);
  color: var(--color-accent);
  font-size: 18px;
  letter-spacing: 1px;
}
.review-rating--muted { color: var(--color-text-secondary); font-size: 13px; letter-spacing: 0; }
.review-date    { color: var(--color-text-secondary); font-size: 13px; }
.review-text    { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--color-text); }

.review-related-card {
  margin-bottom: 8px;
  padding: 7px 11px;
  background: var(--color-bg-soft);
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid var(--color-border);
}
.review-related-card-muted { color: var(--color-text-secondary); }
.review-related-link { text-decoration: none; color: var(--color-primary); font-weight: 800; }

.review-image-wrap { margin-top: 10px; }
.review-image { max-width: 100%; height: auto; border-radius: 10px; }

.review-admin-reply {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(31,111,139,0.07);
  border-radius: 20px;
  border: 1px solid rgba(31,111,139,0.12);
  border-left: 0;
}
.review-admin-reply-title { color: var(--color-primary); font-weight: 700; font-size: 13px; }
.review-admin-reply-text  { margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--color-text); }

.reviews-empty {
  padding: 22px;
  border: 1px solid rgba(31,111,139,0.12);
  border-radius: 18px;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
}

.reviews-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-text);
}

.reviews-empty p,
.review-form-intro {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.review-form-intro {
  margin: -6px 0 18px;
}

.reviews-conversion {
  margin: 30px 0;
  padding: 32px;
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(24,84,103,0.96), rgba(31,111,139,0.86)),
    var(--color-primary);
}

.reviews-conversion p,
.reviews-conversion h2 {
  color: #fff;
  margin-top: 0;
}

.reviews-conversion p {
  margin-bottom: 6px;
  color: rgba(255,255,255,0.76);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviews-conversion h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.reviews-conversion .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.38);
}

.review-form-card {
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(31,111,139,0.12);
  box-shadow: 0 16px 40px rgba(17,17,17,0.06);
}

.review-form-title {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 26px;
  font-weight: 900;
}

.review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.review-form-field:nth-of-type(3),
.review-form-field:nth-of-type(4) {
  grid-column: 1 / -1;
}

.review-form-label {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
}

.review-form-input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(31,111,139,0.18);
  border-radius: 14px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}

.review-form-textarea {
  min-height: 132px;
  resize: vertical;
}

.review-form-help {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.review-form-submit {
  justify-self: start;
  min-height: 48px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* =============================================
   REVIEW FORM CARD  — rf-* namespace
   ============================================= */
.rf-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 28px 32px 32px;
  margin-top: 24px;
}

.rf-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.rf-card__head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Stars block in header */
.rf-stars-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.rf-stars-block__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rf-stars-block__required {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.25);
  color: var(--color-danger);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rf-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.rf-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.rf-card__sub {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Grid */
.rf-grid {
  display: grid;
  gap: 18px;
}

/* Field wrapper */
.rf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Labels */
.rf-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.rf-required { color: var(--color-accent-hover); margin-left: 2px; }
.rf-optional { font-weight: 400; text-transform: none; color: var(--color-text-secondary); }
.rf-hint { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }

/* Inputs */
.rf-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}
.rf-input::placeholder { color: #b5bdc7; }
.rf-input:focus {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}
.rf-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ── Star picker ── */
.rf-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
  align-items: center;
}

/* When used inside the card header */
.rf-stars--inline {
  padding: 0;
}

.rf-star-input {
  display: none;
}

.rf-star-label {
  font-size: 36px;
  color: #d8dce5;
  cursor: pointer;
  transition: color 0.12s ease, transform 0.14s cubic-bezier(0.34,1.56,0.64,1);
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: block;
}

.rf-star-label:hover { transform: scale(1.22) translateY(-2px); }

/* Hover: colour this star AND all siblings to its right (= lower value stars) */
.rf-stars:has(.rf-star-label:hover) .rf-star-label:hover,
.rf-stars:has(.rf-star-label:hover) .rf-star-label:hover ~ .rf-star-label {
  color: var(--color-accent);
}

/* Selected: colour the checked star AND all siblings to its right */
.rf-star-input:checked ~ .rf-star-label {
  color: var(--color-accent);
}

/* Hint text shown after stars */
.rf-stars-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-hover);
  margin-left: 6px;
  min-width: 60px;
}

/* File upload zone */
.rf-file-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-soft);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  text-align: center;
}
.rf-file-zone:hover {
  border-color: var(--color-primary);
  background: #fff;
}
.rf-file-zone i {
  font-size: 28px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}
.rf-file-zone__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
.rf-file-zone__hint {
  font-size: 12px;
  color: var(--color-text-secondary);
}
.rf-file-input {
  display: none;
}

/* Name field: label + input inline */
.rf-field--inline {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.rf-label--inline {
  flex-shrink: 0;
  white-space: nowrap;
}

.rf-input--inline {
  flex: 1;
  min-width: 0;
}

/* Submit wrapper — centered */
.rf-submit-wrap {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

/* Submit button */
.rf-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 36px;
  min-height: 48px;
  background: var(--color-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
}
.rf-submit:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.rf-submit:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Form success/error message */
.review-form-message { margin-top: 12px; display: none; font-size: 14px; font-weight: 600; }

/* ── Mobile ── */
@media (max-width: 680px) {
  .rf-card { padding: 18px 14px 22px; }

  .rf-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .rf-stars-block {
    align-items: flex-start;
    width: 100%;
  }

  .rf-star-label { font-size: 30px; }

  .rf-submit { width: 100%; justify-content: center; }
}

/* =============================================
   TABLET  ≤ 1024px
   ============================================= */
@media (max-width: 1024px) {
  .td-hero__inner {
    margin-left: auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .td-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }

  .service-hero-panel {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   MOBILE  ≤ 768px
   ============================================= */
@media (max-width: 768px) {
  .td-page {
    --tour-hero-outer-x: 12px;
    --tour-hero-radius: 22px;
  }

  .detail-section {
    padding: 30px 0 46px;
  }

  .detail-title {
    font-size: 28px;
  }

  .detail-main-card,
  .service-contact-card {
    padding: 18px;
  }

  .detail-main-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-main-image,
  .detail-hero-image {
    height: 300px;
  }

  .service-detail-summary {
    grid-template-columns: 1fr;
  }

  .service-contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-contact-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .td-hero {
    min-height: 0;
  }

  .td-hero__inner {
    padding: 7px 16px 4px;
    gap: 7px;
  }

  .td-hero__meta-row {
    gap: 5px;
  }

  .td-hero__title {
    margin-top: 17px;
    margin-bottom: 18px;
    font-size: clamp(23px, 6.6vw, 28px);
    line-height: 1.08;
  }

  .td-hero__label,
  .td-hero__region,
  .td-hero__rating .tour-rating-numeric {
    font-size: 11px;
  }

  .td-hero__rating .tour-star-wrap {
    font-size: 0.78rem;
  }

  .td-hero__booking-row {
    grid-template-columns: max-content minmax(132px, 1fr);
    gap: 7px;
    max-width: 100%;
  }

  .td-hero__price {
    gap: 3px;
  }

  .td-hero__price-prefix {
    font-size: 11px;
  }

  .td-hero__price-value {
    gap: 2px;
    font-size: 16px;
  }

  .td-hero__cta {
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
  }

  .td-hero__facts-strip {
    gap: clamp(4px, 1.4vw, 8px);
    min-height: 0;
    padding: 3px 0 4px;
    font-size: 10.5px;
  }

  .td-hero__fact {
    gap: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .td-hero__fact i {
    font-size: 0.86em;
  }

  .td-hero__fact-label {
    display: none;
  }

  .td-hero-compact {
    min-height: 44px;
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 14px;
  }

  .td-hero-compact__inner {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 46px;
    padding: 3px 5px;
  }

  .td-hero-compact__back,
  .td-hero-compact__cta {
    width: 42px;
    height: 40px;
  }

  .td-hero-compact__title {
    font-size: 15px;
  }

  .td-layout {
    grid-template-columns: 1fr;
    padding: 12px 16px 38px;
    gap: 34px;
  }

  .td-main {
    gap: 34px;
  }

  .td-booking-sidebar {
    display: none;
  }

  .td-section-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .detail-gallery-title,
  .reviews-section-title {
    font-size: 20px;
    margin: 32px 0 16px;
  }

  .td-inclusions__grid {
    grid-template-columns: 1fr;
  }

  .td-gallery__arrow {
    width: 34px;
    height: 34px;
  }

  .service-hero-panel,
  .reviews-page-head,
  .reviews-conversion,
  .service-final-cta,
  .review-form-card {
    padding: 24px;
    border-radius: 24px;
  }

  .review-form-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   SMALL MOBILE  ≤ 480px
   ============================================= */
@media (max-width: 480px) {
  .detail-title { font-size: 24px; }
  .detail-main-image,
  .detail-hero-image { height: 240px; }
  .td-section {
    padding: 0;
  }
  .td-gallery {
    gap: 10px;
  }
  .td-gallery__stage,
  .td-gallery__main-link {
    border-radius: 20px;
  }
  .td-gallery__main-img {
    aspect-ratio: 4 / 3;
  }
  .td-gallery__meta {
    left: 9px;
    right: 9px;
    bottom: 9px;
  }
  .td-gallery__count,
  .td-gallery__all {
    min-height: 26px;
    padding: 4px 7px;
    border-radius: 9px;
    font-size: 11px;
  }
  .td-thumbs {
    gap: 6px;
  }
  .td-thumb {
    flex-basis: 56px;
    width: 56px;
    height: 46px;
    border-radius: 9px;
  }
  .td-hero__booking-row {
    align-items: center;
  }
  .td-hero__cta {
    min-height: 42px;
    padding: 8px 12px;
  }
  .td-overview__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-bottom: 22px;
  }
  .td-overview__fact {
    gap: 3px 8px;
  }
  .td-overview__fact i {
    width: 18px;
    font-size: 14px;
  }
  .td-overview__fact span {
    font-size: 11px;
  }
  .td-overview__fact strong {
    font-size: 14px;
  }
  .td-lead {
    font-size: 17px;
    line-height: 1.68;
    margin-bottom: 18px;
  }
  .td-richtext {
    font-size: 15px;
    line-height: 1.82;
  }
  .td-overview__text-wrap {
    max-height: 17em;
  }
  .td-video,
  .td-video__preview,
  .td-video-ratio {
    border-radius: 20px;
  }
}

@media (max-width: 360px) {
  .td-page {
    --tour-hero-outer-x: 8px;
  }

  .td-hero {
    min-height: 0;
  }

  .td-hero__inner {
    gap: 6px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .td-hero__title {
    font-size: 23px;
  }

  .td-hero__label,
  .td-hero__region,
  .td-hero__rating .tour-rating-numeric {
    font-size: 10px;
  }

  .td-hero__rating .tour-star-wrap {
    font-size: 0.68rem;
  }

  .td-hero__booking-row {
    grid-template-columns: max-content minmax(122px, 1fr);
    gap: 5px;
  }

  .td-hero__price-prefix {
    font-size: 10px;
  }

  .td-hero__price-value {
    font-size: 14px;
  }

  .td-hero__cta {
    min-height: 42px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 13px;
  }

  .td-hero__facts-strip {
    gap: 3px;
    font-size: 9.5px;
  }

  .td-hero__fact {
    gap: 3px;
  }
}

body.modal-open .td-hero.is-compact .td-hero-compact,
body.tour-menu-open .td-hero.is-compact .td-hero-compact {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .td-hero-compact {
    transition: none;
  }
}
