/* Dedicated tour detail pages. All rules are route-scoped. */

.hbs-tour-detail {
  background: var(--hbs-cream);
  color: var(--hbs-ink);
}

.hbs-tour-detail__shell {
  width: min(var(--hbs-content), calc(100% - 48px));
  margin: 0 auto;
}

.hbs-tour-detail__section {
  padding: clamp(68px, 8vw, 112px) 0;
}

.hbs-tour-detail__eyebrow {
  margin: 0 0 14px;
  color: #f2d296;
  font-family: var(--hbs-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.6px;
  line-height: 1.35;
  text-transform: uppercase;
}

.hbs-tour-detail__eyebrow--dark {
  color: var(--hbs-bronze-dark);
}

.hbs-tour-detail__hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(640px, 78vh, 790px);
  display: grid;
  place-items: center;
  padding: 80px 24px 130px;
  background-color: #283630;
  background-position: center 54%;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
}

.hbs-tour-detail__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 7, 0.14) 0%, rgba(5, 7, 7, 0.34) 55%, rgba(5, 7, 7, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.36), transparent 68%);
}

.hbs-tour-detail__hero-content {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.34);
}

.hbs-tour-detail__hero h1 {
  max-width: 1020px;
  margin: 0 auto;
  color: white;
  font-family: var(--hbs-display);
  font-size: clamp(52px, 7.4vw, 96px);
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1;
  text-transform: uppercase;
}

.hbs-tour-detail__hero-subtitle {
  max-width: 760px;
  margin: 24px auto 30px;
  color: white;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.55;
}

.hbs-tour-detail__hero .button {
  min-width: 218px;
  text-shadow: none;
}

.hbs-tour-detail__hero-facts {
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  width: min(980px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  overflow: hidden;
  background: white;
  border-top: 5px solid var(--hbs-gold);
  box-shadow: 0 22px 56px rgba(25, 18, 11, 0.24);
  color: var(--hbs-black);
  transform: translateY(50%);
}

.hbs-tour-detail__hero-facts div {
  min-width: 0;
  padding: 23px 28px 21px;
  text-align: center;
}

.hbs-tour-detail__hero-facts div + div {
  border-left: 1px solid var(--hbs-line);
}

.hbs-tour-detail__hero-facts span,
.hbs-tour-detail__hero-facts strong {
  display: block;
}

.hbs-tour-detail__hero-facts span {
  margin-bottom: 6px;
  color: var(--hbs-bronze);
  font-family: var(--hbs-sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
  line-height: 1.35;
  text-transform: uppercase;
}

.hbs-tour-detail__hero-facts strong {
  font-size: 17px;
  line-height: 1.35;
}

.hbs-tour-detail__introduction {
  padding-top: clamp(130px, 14vw, 168px);
  background: var(--hbs-cream);
}

.hbs-tour-detail__section-heading {
  max-width: 830px;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.hbs-tour-detail__section-heading--centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.hbs-tour-detail__section-heading h2,
.hbs-tour-detail__overview-copy h2 {
  margin: 0;
  font-family: var(--hbs-display);
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.08;
}

.hbs-tour-detail__section-heading > p:not(.hbs-tour-detail__eyebrow):not(.hbs-tour-detail__pricing-note) {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--hbs-muted);
  font-size: 18px;
  line-height: 1.7;
}

.hbs-tour-detail__section-heading > .hbs-tour-detail__pricing-note {
  max-width: 690px;
  margin: 18px auto 0;
  padding: 14px 17px;
  border: 1px solid #dfd2c3;
  border-left: 4px solid var(--hbs-gold);
  background: var(--hbs-cream);
  color: var(--hbs-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.hbs-tour-detail__pricing-note strong {
  color: var(--hbs-black);
}

.hbs-tour-detail__gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.8fr);
  grid-template-rows: repeat(3, clamp(145px, 13vw, 190px));
  gap: 14px;
}

.hbs-tour-detail__gallery figure {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #d8d0c5;
}

.hbs-tour-detail__gallery figure:first-child {
  grid-row: 1 / span 3;
}

.hbs-tour-detail__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.hbs-tour-detail__gallery figure:nth-child(3) img,
.hbs-tour-detail__gallery figure:nth-child(4) img {
  object-position: center 66%;
}

.hbs-tour-detail__gallery figure:hover img {
  transform: scale(1.035);
}

.hbs-tour-detail__overview {
  position: relative;
  background: var(--hbs-black);
  color: white;
}

.hbs-tour-detail__overview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 16%, rgba(209, 159, 64, 0.16), transparent 32%);
  pointer-events: none;
}

.hbs-tour-detail__overview-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: clamp(44px, 7vw, 90px);
  align-items: start;
}

.hbs-tour-detail__overview-copy h2 {
  margin-bottom: 28px;
  color: white;
}

.hbs-tour-detail__overview-copy > p:not(.hbs-tour-detail__eyebrow):not(.hbs-tour-detail__notice) {
  margin: 0 0 22px;
  color: #e4ded7;
  font-size: 18px;
  line-height: 1.8;
}

.hbs-tour-detail__notice {
  margin: 34px 0 0;
  padding: 20px 22px;
  border: 1px solid rgba(225, 180, 82, 0.48);
  border-left: 5px solid var(--hbs-gold);
  background: rgba(209, 159, 64, 0.1);
  color: #f7eee0;
  font-size: 15px;
  line-height: 1.7;
}

.hbs-tour-detail__quick-facts {
  padding: clamp(30px, 4vw, 42px);
  border-top: 5px solid var(--hbs-gold);
  background: white;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
  color: var(--hbs-ink);
}

.hbs-tour-detail__quick-facts h3 {
  margin: 0 0 22px;
  color: var(--hbs-bronze-dark);
  font-family: var(--hbs-display);
  font-size: 31px;
  line-height: 1.15;
}

.hbs-tour-detail__quick-facts ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hbs-tour-detail__quick-facts li {
  position: relative;
  padding: 14px 0 14px 31px;
  border-bottom: 1px solid var(--hbs-line);
  line-height: 1.5;
}

.hbs-tour-detail__quick-facts li::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 0;
  color: var(--hbs-gold);
  font-weight: 900;
}

.hbs-tour-detail__quick-facts > p {
  margin: 22px 0 0;
  color: var(--hbs-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hbs-tour-detail__vehicles {
  background: white;
}

.hbs-tour-detail__vehicle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.hbs-tour-detail__vehicle-grid--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.hbs-tour-detail__vehicle-grid > .hbs-tour-detail__vehicle-card:only-child {
  width: min(100%, 720px);
  grid-column: 1 / -1;
  justify-self: center;
}

.hbs-tour-detail__vehicle-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ded4c8;
  border-top: 5px solid var(--hbs-gold);
  background: white;
  box-shadow: 0 22px 54px rgba(45, 32, 20, 0.1);
}

.hbs-tour-detail__vehicle-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d7d0c7;
}

.hbs-tour-detail__vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hbs-tour-detail__vehicle-body {
  padding: clamp(27px, 4vw, 42px);
  text-align: center;
}

.hbs-tour-detail__vehicle-capacity {
  margin: 0 0 7px;
  color: var(--hbs-bronze);
  font-family: var(--hbs-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  line-height: 1.35;
  text-transform: uppercase;
}

.hbs-tour-detail__vehicle-body h3 {
  margin: 0;
  color: var(--hbs-black);
  font-family: var(--hbs-display);
  font-size: clamp(31px, 4vw, 42px);
  line-height: 1.12;
}

.hbs-tour-detail__price {
  margin: 24px 0 10px;
}

.hbs-tour-detail__price strong,
.hbs-tour-detail__price span {
  display: block;
}

.hbs-tour-detail__price strong {
  color: var(--hbs-bronze-dark);
  font-family: var(--hbs-display);
  font-size: clamp(36px, 4.8vw, 52px);
  line-height: 1;
}

.hbs-tour-detail__price span {
  margin-top: 7px;
  color: var(--hbs-muted);
  font-family: var(--hbs-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hbs-tour-detail__tax-note {
  min-height: 48px;
  margin: 0 auto 24px;
  color: var(--hbs-muted);
  font-size: 13px;
  line-height: 1.55;
}

.hbs-tour-detail__vehicle-body .button {
  width: 100%;
}

.hbs-tour-detail__vehicle-body .button-black:hover,
.hbs-tour-detail__vehicle-body .button-black:focus-visible {
  background: var(--hbs-gold);
  color: var(--hbs-black);
}

.hbs-tour-detail__vehicle-body .button-black:focus-visible {
  outline: 3px solid var(--hbs-gold-bright);
  outline-offset: 3px;
}

.hbs-tour-detail__calendar {
  min-height: 600px;
  padding: 24px;
  border-top: 1px solid var(--hbs-line);
  background: #fbf8f3;
  scroll-margin-top: 150px;
}

.hbs-tour-detail__calendar-label {
  margin: 0 0 18px;
  color: var(--hbs-bronze-dark);
  font-family: var(--hbs-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.hbs-tour-detail__calendar iframe {
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

.hbs-tour-detail__calendar noscript p {
  margin: 0;
  color: var(--hbs-muted);
  text-align: center;
}

.hbs-tour-detail__calendar noscript a {
  color: var(--hbs-bronze-dark);
  text-decoration: underline;
}

.hbs-tour-detail__plan {
  background:
    radial-gradient(circle at 7% 0%, rgba(209, 159, 64, 0.1), transparent 28%),
    var(--hbs-cream);
}

.hbs-tour-detail__details-list {
  display: grid;
  gap: 16px;
}

.hbs-tour-detail__details {
  border: 1px solid #ddd2c5;
  background: white;
  box-shadow: 0 10px 28px rgba(50, 37, 24, 0.06);
}

.hbs-tour-detail__details summary {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: var(--hbs-black);
  color: white;
  cursor: pointer;
  font-family: var(--hbs-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  line-height: 1.35;
  list-style: none;
  text-transform: uppercase;
}

.hbs-tour-detail__details summary::-webkit-details-marker {
  display: none;
}

.hbs-tour-detail__details summary:hover {
  background: #17130f;
}

.hbs-tour-detail__details-icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.hbs-tour-detail__details-icon::before,
.hbs-tour-detail__details-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  background: var(--hbs-gold-bright);
  transform: translate(-50%, -50%);
}

.hbs-tour-detail__details-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 150ms ease;
}

.hbs-tour-detail__details[open] .hbs-tour-detail__details-icon::after {
  opacity: 0;
}

.hbs-tour-detail__details-content {
  padding: clamp(24px, 4vw, 42px);
}

.hbs-tour-detail__interactive-wrap .hbs-waimoku-itinerary--embedded {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hbs-tour-detail__interactive-wrap .hbs-waimoku-itinerary--embedded::before {
  display: none;
}

.hbs-tour-detail__pickup-grid {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
  margin: 0 auto;
  text-align: center;
}

.hbs-tour-detail__pickup-grid > * {
  min-width: 0;
}

.hbs-tour-detail__pickup-grid > img {
  display: none;
}

.hbs-tour-detail__itinerary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.hbs-tour-detail__route-map img {
  width: 100%;
  height: auto;
  border: 1px solid var(--hbs-line);
}

.hbs-tour-detail__pickup-grid h3 {
  margin: 0 0 15px;
  color: var(--hbs-bronze-dark);
  font-family: var(--hbs-display);
  font-size: 32px;
  line-height: 1.2;
  text-align: center;
}

.hbs-tour-detail__pickup-grid p {
  max-width: 680px;
  margin: 0 auto 14px;
  color: var(--hbs-muted);
  line-height: 1.75;
  text-align: center;
}

.hbs-tour-detail__pickup-grid a {
  color: var(--hbs-bronze-dark);
  font-weight: 700;
  text-decoration: underline;
}

.hbs-tour-detail__route-map {
  position: sticky;
  top: 160px;
}

.hbs-tour-detail__route-map figcaption {
  padding-top: 10px;
  color: var(--hbs-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.hbs-tour-detail__itinerary-copy ol {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 28px;
}

.hbs-tour-detail__itinerary-copy li {
  padding: 13px 14px 12px 9px;
  border: 1px solid #e4dbd0;
  border-left: 3px solid var(--hbs-gold);
  background: #fbf8f3;
  color: #4f4942;
  line-height: 1.55;
}

.hbs-tour-detail__itinerary-copy li::marker {
  color: var(--hbs-bronze-dark);
  font-weight: 800;
}

.hbs-tour-detail__endpoint {
  margin: 0;
  padding: 16px 18px;
  background: var(--hbs-black);
  color: white;
  line-height: 1.55;
}

.hbs-tour-detail__packing-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hbs-tour-detail__packing-list li {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--hbs-line);
  background: var(--hbs-cream);
  font-weight: 700;
  line-height: 1.45;
}

.hbs-tour-detail__packing-list li span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hbs-gold);
  color: var(--hbs-black);
  font-size: 14px;
  font-weight: 900;
}

.hbs-tour-detail__gratuity-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--hbs-gold);
  background: #f4ede3;
  color: var(--hbs-muted);
  font-weight: 700;
}

.hbs-tour-detail__recommendations {
  background: var(--hbs-cream);
}

.hbs-tour-detail__availability-jump {
  display: none;
}

@media (max-width: 980px) {
  .hbs-tour-detail__overview-grid,
  .hbs-tour-detail__itinerary-grid {
    grid-template-columns: 1fr;
  }

  .hbs-tour-detail__quick-facts {
    max-width: 680px;
  }

  .hbs-tour-detail__route-map {
    position: static;
  }

  .hbs-tour-detail__packing-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hbs-tour-detail {
    display: flex;
    flex-direction: column;
  }

  .hbs-tour-detail__hero {
    order: 0;
  }

  .hbs-tour-detail__vehicles {
    order: 1;
  }

  .hbs-tour-detail__introduction {
    order: 2;
  }

  .hbs-tour-detail__overview {
    order: 3;
  }

  .hbs-tour-detail__availability-jump {
    width: min(640px, calc(100% - 24px));
    order: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 32px auto;
    padding: 24px;
    border: 1px solid rgba(209, 159, 64, 0.58);
    background: var(--hbs-black);
    box-shadow: 0 18px 40px rgba(32, 24, 17, 0.16);
    text-align: center;
  }

  .hbs-tour-detail__availability-jump p {
    margin: 0;
    color: white;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.3px;
    line-height: 1.45;
    text-transform: uppercase;
  }

  .hbs-tour-detail__availability-jump .button {
    width: min(100%, 290px);
  }

  .hbs-tour-detail__plan {
    order: 5;
  }

  .hbs-tour-detail__recommendations {
    order: 6;
  }

  .hbs-tour-detail__shell {
    width: min(100% - 24px, var(--hbs-content));
  }

  .hbs-tour-detail__hero {
    min-height: 650px;
    padding: 72px 16px 190px;
    background-position: 62% center;
  }

  .hbs-tour-detail__hero h1 {
    font-size: clamp(43px, 13vw, 64px);
    letter-spacing: -0.7px;
  }

  .hbs-tour-detail__hero-facts {
    right: 12px;
    left: 12px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    transform: translateY(43%);
  }

  .hbs-tour-detail__hero-facts div {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    text-align: left;
  }

  .hbs-tour-detail__hero-facts div + div {
    border-top: 1px solid var(--hbs-line);
    border-left: 0;
  }

  .hbs-tour-detail__hero-facts span {
    margin: 0;
  }

  .hbs-tour-detail__vehicles {
    padding-top: 160px;
  }

  .hbs-tour-detail__introduction {
    padding-top: 58px;
  }

  .hbs-tour-detail__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 8px;
  }

  .hbs-tour-detail__gallery figure {
    aspect-ratio: 4 / 3;
  }

  .hbs-tour-detail__gallery figure:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .hbs-tour-detail__gallery figure:nth-child(4) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
  }

  .hbs-tour-detail__vehicle-grid {
    grid-template-columns: 1fr;
  }

  .hbs-tour-detail__calendar {
    min-height: 520px;
    padding: 18px 12px;
  }

  .hbs-tour-detail__details summary {
    min-height: 68px;
    padding: 16px 18px;
  }
}

@media (max-width: 520px) {
  .hbs-tour-detail__section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hbs-tour-detail__vehicles {
    padding-top: 150px;
  }

  .hbs-tour-detail__introduction {
    padding-top: 58px;
  }

  .hbs-tour-detail__section-heading h2,
  .hbs-tour-detail__overview-copy h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hbs-tour-detail__gallery {
    grid-template-columns: 1fr;
  }

  .hbs-tour-detail__gallery figure,
  .hbs-tour-detail__gallery figure:first-child,
  .hbs-tour-detail__gallery figure:nth-child(4) {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .hbs-tour-detail__packing-list {
    grid-template-columns: 1fr;
  }

  .hbs-tour-detail__packing-list li {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hbs-tour-detail__gallery img,
  .hbs-tour-detail__details-icon::after {
    transition: none;
  }

  .hbs-tour-detail__gallery figure:hover img {
    transform: none;
  }
}
