/**
 * HAIBO — Destination detail (dark cinematic package page)
 * Hero → Price → What's Included → single Book CTA
 */

body[data-page='destination-detail'] {
  background: var(--haibo-bg, #080d11);
  color: var(--haibo-text, #fff);
}

body[data-page='destination-detail'] nav.nav-blur a.orange {
  color: var(--haibo-gold, #f5b51b);
}

body[data-page='destination-detail'] .site-footer {
  background: #060a0d;
  color: var(--haibo-text-muted, rgba(255, 255, 255, 0.48));
}

/* ── Cinematic hero ── */
.dest-detail-hero {
  position: relative;
  width: 100%;
  min-height: clamp(28rem, 78vh, 44rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #080d11;
  isolation: isolate;
}

.dest-detail-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dest-detail-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dest-detail-hero__media--empty {
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(245, 181, 27, 0.14), transparent 58%),
    linear-gradient(160deg, #152028, #080d11);
}

.dest-detail-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(3, 10, 14, 0.72) 0%,
      rgba(3, 10, 14, 0.42) 40%,
      rgba(3, 10, 14, 0.08) 75%,
      rgba(3, 10, 14, 0.02) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(3, 10, 14, 0.2) 0%,
      transparent 32%,
      rgba(8, 13, 17, 0.55) 72%,
      rgba(8, 13, 17, 0.95) 100%
    );
}

.dest-detail-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding:
    clamp(5.5rem, 14vh, 8rem)
    max(1.25rem, env(safe-area-inset-right, 0px))
    clamp(2.5rem, 7vw, 4rem)
    5vw;
  align-self: flex-end;
}

.dest-detail-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

.dest-detail-crumbs li + li::before {
  content: '›';
  margin-right: 0.35rem;
  color: rgba(255, 255, 255, 0.4);
}

.dest-detail-crumbs a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.dest-detail-crumbs a:hover,
.dest-detail-crumbs a:focus-visible {
  color: var(--haibo-gold, #f5b51b);
}

.dest-detail-crumbs [aria-current='page'] {
  color: rgba(255, 255, 255, 0.92);
}

.dest-detail-hero__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin-bottom: 1.15rem;
}

.dest-detail-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.05rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 15, 18, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dest-detail-hero__pill svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: var(--haibo-gold, #f5b51b);
  stroke: currentColor;
  fill: none;
}

.dest-detail-hero__title {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-size: clamp(2.5rem, 5.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.dest-detail-hero__subtitle {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

/* ── Dark content shell ── */
.dest-detail-body {
  background: var(--haibo-bg, #080d11);
  color: var(--haibo-text, #fff);
  padding:
    clamp(2.75rem, 7vw, 4.5rem)
    max(1.25rem, env(safe-area-inset-left, 0px))
    clamp(4rem, 10vw, 6.5rem)
    max(1.25rem, env(safe-area-inset-right, 0px));
}

.dest-detail-body__inner {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
}

/* ── Price ── */
.dest-detail-price {
  margin-bottom: clamp(2.75rem, 7vw, 4rem);
}

.dest-detail-price__label {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--haibo-text-muted, rgba(255, 255, 255, 0.48));
}

.dest-detail-price__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
}

.dest-detail-price__value {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--haibo-gold, #f5b51b);
}

.dest-detail-price__note {
  font-size: 1rem;
  font-weight: 500;
  color: var(--haibo-text-secondary, rgba(255, 255, 255, 0.68));
}

.dest-detail-price__empty {
  margin: 0;
  color: var(--haibo-text-muted, rgba(255, 255, 255, 0.48));
  font-size: 1rem;
}

/* ── Interactive package tabs ── */
.dest-detail-tabs {
  margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
}

.dest-detail-tabs__shell {
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.dest-detail-tabs__nav {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  padding: 0.65rem 0.65rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dest-detail-tabs__nav::-webkit-scrollbar {
  display: none;
}

.dest-detail-tabs__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 2.85rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.85rem 0.85rem 0 0;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.dest-detail-tabs__tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
}

.dest-detail-tabs__tab.is-active {
  color: var(--haibo-gold, #f5b51b);
  background: rgba(245, 181, 27, 0.08);
}

.dest-detail-tabs__tab.is-active::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--haibo-gold, #f5b51b);
  box-shadow: 0 0 10px var(--haibo-gold-glow, rgba(245, 181, 27, 0.16));
}

.dest-detail-tabs__tab-icon {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.dest-detail-tabs__tab-icon svg {
  width: 100%;
  height: 100%;
}

.dest-detail-tabs__panels {
  padding: clamp(1.25rem, 3vw, 1.85rem);
  max-height: min(28rem, 52vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dest-detail-tabs__panel[hidden] {
  display: none !important;
}

.dest-detail-tabs__panel.is-entering {
  animation: destTabFade 220ms ease-out;
}

@keyframes destTabFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dest-detail-tabs__panel-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.dest-detail-tabs__accent {
  display: block;
  width: 2.75rem;
  height: 0.22rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: var(--haibo-gold, #f5b51b);
}

.dest-detail-tabs__empty {
  margin: 0;
  color: var(--haibo-text-muted, rgba(255, 255, 255, 0.48));
  font-size: 0.92rem;
}

.dest-detail-tabs__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 720px) {
  .dest-detail-tabs__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.75rem;
  }
}

.dest-detail-tabs__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  min-width: 0;
}

.dest-detail-tabs__feature-icon {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 181, 27, 0.35);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--haibo-gold, #f5b51b);
}

.dest-detail-tabs__feature-icon svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
}

.dest-detail-tabs__feature-copy {
  min-width: 0;
}

.dest-detail-tabs__feature-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.dest-detail-tabs__feature-detail {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.4;
}

.dest-detail-tabs__itinerary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dest-detail-tabs__day {
  display: grid;
  grid-template-columns: 0.75rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.dest-detail-tabs__day-rail {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: var(--haibo-gold, #f5b51b);
  box-shadow: 0 0 0 3px rgba(245, 181, 27, 0.12);
}

.dest-detail-tabs__day-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--haibo-gold, #f5b51b);
}

.dest-detail-tabs__day-title {
  margin: 0.2rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
}

.dest-detail-tabs__day-text {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.dest-detail-tabs__map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 860px) {
  .dest-detail-tabs__map-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.35rem;
    align-items: stretch;
  }

  .dest-detail-tabs__map-grid--text {
    grid-template-columns: 1fr;
  }
}

.dest-detail-tabs__map-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  min-height: 14rem;
}

.dest-detail-tabs__map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  border: 0;
}

.dest-detail-tabs__overview-text {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.dest-detail-tabs__info {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.dest-detail-tabs__info-row {
  display: grid;
  grid-template-columns: minmax(7rem, 34%) 1fr;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dest-detail-tabs__info-row dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.dest-detail-tabs__info-row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .dest-detail-tabs__panel.is-entering {
    animation: none;
  }
}

/* ── Key facts, overview, FAQ ── */
.dest-detail-section {
  margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
}

.dest-detail-section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.dest-detail-section__text {
  margin: 0;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

.dest-detail-faq__item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dest-detail-faq__question {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.dest-detail-faq__answer {
  margin: 0.4rem 0 0;
  max-width: 48rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

/* ── Single Book CTA ── */
.dest-detail-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.25rem;
}

.dest-detail-book__alt {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.dest-detail-book__alt a {
  color: var(--haibo-gold, #f5b51b);
  font-weight: 600;
  text-decoration: none;
}

.dest-detail-book__alt a:hover,
.dest-detail-book__alt a:focus-visible {
  text-decoration: underline;
}

/* ── Related tours (internal links) ── */
.dest-detail-related {
  margin-top: clamp(3.5rem, 9vw, 5.5rem);
}

.dest-detail-related__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.dest-detail-related__all {
  margin: 1.5rem 0 0;
  text-align: center;
}

.dest-detail-related__all a {
  color: var(--haibo-gold, #f5b51b);
  font-weight: 600;
  text-decoration: none;
}

.dest-detail-related__all a:hover,
.dest-detail-related__all a:focus-visible {
  text-decoration: underline;
}

.dest-detail-book__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: min(100%, 26rem);
  min-height: 3.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--haibo-gold, #f5b51b) 0%, var(--haibo-gold-hover, #ffc43d) 55%, var(--haibo-gold, #f5b51b) 100%);
  color: #0a0a0a;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 10px 28px var(--haibo-gold-glow, rgba(245, 181, 27, 0.16)),
    0 2px 8px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.28s ease;
}

.dest-detail-book__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 14px 34px rgba(245, 181, 27, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.28);
}

.dest-detail-book__btn:focus-visible {
  outline: 2px solid var(--haibo-gold, #f5b51b);
  outline-offset: 3px;
}

.dest-detail-book__icon,
.dest-detail-book__arrow {
  display: inline-flex;
  flex-shrink: 0;
}

.dest-detail-book__icon svg,
.dest-detail-book__arrow svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dest-detail-book__arrow {
  transition: transform 0.28s ease;
}

.dest-detail-book__btn:hover .dest-detail-book__arrow {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .dest-detail-hero {
    min-height: clamp(26rem, 82svh, 36rem);
  }

  .dest-detail-hero__title {
    max-width: 14ch;
    font-size: clamp(2.25rem, 9vw, 3.1rem);
  }

  .dest-detail-hero__content {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dest-detail-book__btn,
  .dest-detail-book__arrow {
    transition: none;
  }

  .dest-detail-book__btn:hover {
    transform: none;
  }
}
