/* Shared hero journey details for the Italy's Great Cities collection. */
.nj-tour .nj-hero__route {
  margin-bottom: 15px;
}

.nj-tour .nj-hero-facts {
  display: grid;
  width: min(100%, 850px);
  grid-template-columns: minmax(0,.43fr) minmax(0,.57fr);
  grid-template-areas:
    "duration pace"
    "group overnights";
  margin: 0 0 21px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  background: linear-gradient(135deg,rgba(4,29,37,.58),rgba(10,51,59,.36));
  box-shadow: 0 16px 38px rgba(0,0,0,.14);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nj-tour .nj-hero-fact {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0,1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 13px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.nj-tour .nj-hero-fact--duration {
  grid-area: duration;
}

.nj-tour .nj-hero-fact--group {
  grid-area: group;
}

.nj-tour .nj-hero-fact--pace {
  grid-area: pace;
}

.nj-tour .nj-hero-fact--stays,
.nj-tour .nj-hero-fact--hosting {
  grid-area: overnights;
}

.nj-tour .nj-hero-fact--duration,
.nj-tour .nj-hero-fact--pace {
  border-top: 0;
}

.nj-tour .nj-hero-fact--duration,
.nj-tour .nj-hero-fact--group {
  padding-left: 2px;
  border-right: 1px solid rgba(255,255,255,.14);
}

.nj-tour .nj-hero-fact__icon {
  width: 24px;
  padding-top: 3px;
  color: #f7c16d;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.nj-tour .nj-hero-fact__copy {
  display: block;
  min-width: 0;
}

.nj-tour .nj-hero-fact__label {
  display: block;
  margin: 0 0 2px;
  color: rgba(255,255,255,.66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.nj-tour .nj-hero-fact strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .005em;
  line-height: 1.38;
}

.nj-tour .nj-hero__tripadvisor-proof {
  position: relative;
  top: calc(clamp(39px, 5vh, 63px) - 4px);
  display: inline-flex;
  max-width: min(100%, 850px);
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.78) !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16.8px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-decoration: none !important;
  transition: color .18s ease, border-color .18s ease;
}

.nj-tour .nj-hero__tripadvisor-proof:hover,
.nj-tour .nj-hero__tripadvisor-proof:focus-visible {
  border-color: rgba(247,193,109,.48);
  color: #fff !important;
}

.nj-tour .nj-hero__tripadvisor-proof:focus-visible {
  outline: 2px solid #f7c16d;
  outline-offset: 4px;
}

.nj-tour .nj-hero__tripadvisor-star {
  flex: 0 0 auto;
  color: #f7c16d;
  font-size: 13px;
}

.nj-tour .nj-hero__tripadvisor-proof strong {
  color: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.nj-tour .nj-hero__actions + .nj-hero__tripadvisor-proof,
.nj-tour .nj-hero__primary + .nj-hero__tripadvisor-proof {
  margin-top: 38px;
}

@media (min-width: 768px) {
  .nj-tour .nj-hero__content {
    padding-bottom: calc(clamp(78px,10vh,126px) + 30px);
  }

  .nj-tour .nj-hero__actions a[href="#complete-journey"] { order: 1; }
  .nj-tour .nj-hero__actions a[href="#dates"] { order: 2; }
}

/* The 12-Day flagship gains a little more photographic breathing room only on
   genuinely tall desktop viewports. The balanced margins move the primary
   content without changing the hero's flow height or the testimonial position. */
@media (min-width: 1024px) and (min-height: 900px) {
  .nj-tour--igc12 .nj-hero__primary {
    margin-top: 24px;
    margin-bottom: -24px;
  }
}

@media (min-width: 1024px) {
  .nj-tour--igc12 .nj-hero__tripadvisor-proof {
    font-size: 18.5px;
    line-height: 1.4;
    padding-top: 5px;
  }
}

@media (max-width: 767px) {
  html .nj-tour .nj-hero__route {
    display: block !important;
    max-width: 35ch;
    margin: 0 0 12px;
    color: rgba(255,255,255,.9);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.42;
  }

  html .nj-tour .nj-hero-facts {
    grid-template-columns: minmax(0,.43fr) minmax(0,.57fr);
    grid-template-areas:
      "duration pace"
      "group overnights";
    margin-bottom: 14px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(4,29,37,.52);
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  html .nj-tour .nj-hero-fact {
    grid-template-columns: 18px minmax(0,1fr);
    gap: 7px;
    padding: 8px 7px;
  }

  html .nj-tour .nj-hero-fact--duration,
  html .nj-tour .nj-hero-fact--group {
    padding-left: 1px;
  }

  html .nj-tour .nj-hero-fact__icon {
    width: 18px;
    font-size: 13px;
  }

  html .nj-tour .nj-hero-fact__label {
    font-size: 8.5px;
    letter-spacing: .1em;
  }

  html .nj-tour .nj-hero-fact strong {
    font-size: 12px;
    line-height: 1.35;
  }

  html .nj-tour .nj-hero__reassurance {
    display: block !important;
    margin-top: 10px;
    font-size: 11px;
  }

  html .nj-tour .nj-hero__tripadvisor-proof {
    top: 9px;
    align-items: flex-start;
    padding-top: 8px;
    font-size: 15px;
    line-height: 1.45;
  }

  html .nj-tour .nj-hero__actions + .nj-hero__tripadvisor-proof,
  html .nj-tour .nj-hero__primary + .nj-hero__tripadvisor-proof {
    margin-top: 34.5px;
  }
}

@media (max-width: 600px) {
  html .nj-tour .nj-hero-facts {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas:
      "duration"
      "group"
      "pace"
      "overnights";
    padding-top: 6px;
    padding-bottom: 6px;
  }

  html .nj-tour .nj-hero-fact,
  html .nj-tour .nj-hero-fact--duration,
  html .nj-tour .nj-hero-fact--group {
    padding: 7px 1px;
    border-top: 1px solid rgba(255,255,255,.14);
    border-right: 0;
  }

  html .nj-tour .nj-hero-fact--duration {
    border-top: 0;
  }

  #nj-hero-actions {
    grid-template-columns: minmax(0,1fr) !important;
  }

  #nj-hero-actions > .nj-button {
    grid-column: 1 !important;
  }
}

@media (max-width: 339px) {
  html .nj-tour .nj-hero__actions .nj-button {
    font-size: 11px !important;
    letter-spacing: .01em;
  }

}

@media print {
  .nj-tour .nj-hero__tripadvisor-proof {
    border-color: #cfd6d7;
    color: #173f49 !important;
  }

  .nj-tour .nj-hero-facts {
    border-color: #9ca8aa;
    background: transparent;
    box-shadow: none;
    color: #173f49;
  }

  .nj-tour .nj-hero-fact,
  .nj-tour .nj-hero-fact--duration,
  .nj-tour .nj-hero-fact--group {
    border-color: #cfd6d7;
  }

  .nj-tour .nj-hero-fact__icon,
  .nj-tour .nj-hero-fact__label,
  .nj-tour .nj-hero-fact strong {
    color: #173f49;
  }
}
