:root {
  --dp-hero-green: #007546;
  --dp-hero-lime: #75c744;
  --dp-hero-ink: #ffffff;
}

.dp-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #0b2118;
  color: var(--dp-hero-ink);
  isolation: isolate;
}

body.home .ppb_tour_search {
  position: relative;
  margin-top: 0 !important;
  padding-top: 24px !important;
}

.dp-hero__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.dp-hero__track,
.dp-hero__slide {
  position: absolute;
  inset: 0;
}

.dp-hero__slide {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity 700ms ease, transform 1100ms cubic-bezier(.22, .61, .36, 1), visibility 0s linear 700ms;
  pointer-events: none;
}

.dp-hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
  pointer-events: auto;
}

.dp-hero__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.dp-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 18, 13, .04) 34%, rgba(4, 18, 13, .72) 100%),
    linear-gradient(90deg, rgba(4, 18, 13, .28), transparent 54%);
  pointer-events: none;
}

.dp-hero__slide.has-copy .dp-hero__shade {
  background:
    linear-gradient(180deg, rgba(4, 18, 13, .12) 24%, rgba(4, 18, 13, .62) 100%),
    linear-gradient(90deg, rgba(4, 18, 13, .62), rgba(4, 18, 13, .08) 58%, transparent);
}

.dp-hero__copy {
  position: absolute;
  z-index: 2;
  left: max(6vw, 32px);
  bottom: clamp(130px, 18vh, 190px);
  width: min(720px, calc(100% - 64px));
}

.dp-hero__headline {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 5.75rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.dp-hero__subtitle {
  max-width: 58ch;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}

.dp-hero__cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 6px;
  background: var(--dp-hero-green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 180ms ease, transform 180ms ease;
}

.dp-hero__cta:hover,
.dp-hero__cta:focus-visible {
  background: #008b55;
  transform: translateY(-2px);
}

.dp-hero__arrow,
.dp-hero__toggle,
.dp-hero__dot {
  appearance: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.dp-hero__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 52px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(4, 18, 13, .42);
  border: 1px solid rgba(255, 255, 255, .34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(-50%);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.dp-hero__arrow--prev {
  left: 20px;
}

.dp-hero__arrow--next {
  right: 20px;
}

.dp-hero__arrow:hover,
.dp-hero__arrow:focus-visible {
  background: var(--dp-hero-green);
  border-color: var(--dp-hero-green);
}

.dp-hero__arrow svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dp-hero__footer {
  position: absolute;
  z-index: 4;
  left: max(6vw, 32px);
  right: max(6vw, 32px);
  bottom: clamp(26px, 3vw, 44px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.dp-hero__identity {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.dp-hero__place {
  max-width: min(52vw, 820px);
  overflow: visible;
  color: #fff;
  font-size: clamp(1.25rem, 1.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.16;
  text-wrap: balance;
  white-space: normal;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .62);
}

.dp-hero__count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .76);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
}

.dp-hero__current {
  color: #fff;
  font-weight: 700;
}

.dp-hero__divider {
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, .55);
}

.dp-hero__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dp-hero__dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.dp-hero__dot {
  width: 19px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
}

.dp-hero__dot span {
  width: 5px;
  height: 5px;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, .52);
  transition: width 220ms ease, border-radius 220ms ease, background-color 220ms ease;
}

.dp-hero__dot.is-active span {
  width: 17px;
  border-radius: 4px;
  background: var(--dp-hero-lime);
}

.dp-hero__toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  background: rgba(4, 18, 13, .32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dp-hero__toggle:hover,
.dp-hero__toggle:focus-visible {
  border-color: #fff;
  background: rgba(4, 18, 13, .58);
}

.dp-hero__toggle svg {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dp-hero__play-icon {
  display: none;
}

.dp-hero.is-paused .dp-hero__pause-icon {
  display: none;
}

.dp-hero.is-paused .dp-hero__play-icon {
  display: block;
}

.dp-hero__progress {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .18);
}

.dp-hero__progress span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--dp-hero-lime);
}

.dp-hero.is-running .dp-hero__progress span {
  animation: dp-hero-progress var(--dp-hero-duration, 4500ms) linear forwards;
}

.dp-hero button:focus-visible,
.dp-hero a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@keyframes dp-hero-progress {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 900px) {
  body.home .ppb_tour_search {
    padding-top: 16px !important;
  }

  .dp-hero__viewport {
    aspect-ratio: auto;
    height: clamp(360px, 50svh, 680px);
    min-height: 360px;
  }

  .dp-hero__arrow {
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 48px;
  }

  .dp-hero__arrow--prev {
    left: 14px;
  }

  .dp-hero__arrow--next {
    right: 14px;
  }

  .dp-hero__footer {
    left: 20px;
    right: 20px;
    bottom: 18px;
    gap: 14px;
  }

  .dp-hero__identity {
    gap: 0;
  }

  .dp-hero__count,
  .dp-hero__dots {
    display: none;
  }

  .dp-hero__place {
    max-width: calc(100vw - 96px);
    font-size: clamp(1.05rem, 3vw, 1.4rem);
    line-height: 1.18;
    letter-spacing: -.01em;
  }

  .dp-hero__copy {
    left: 20px;
    bottom: 112px;
    width: calc(100% - 40px);
  }

  .dp-hero__headline {
    max-width: 15ch;
    font-size: clamp(2.25rem, 11vw, 4.25rem);
  }
}

@media (max-width: 560px) {
  .dp-hero__viewport {
    aspect-ratio: auto;
    height: clamp(380px, 50svh, 520px);
    min-height: 380px;
  }

  .dp-hero__slide > .dp-hero__image {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center;
  }

  .dp-hero__shade {
    background: linear-gradient(180deg, rgba(4, 18, 13, .02) 28%, rgba(4, 18, 13, .8) 100%);
  }

  .dp-hero__arrow {
    top: 45%;
    bottom: auto;
  }

  .dp-hero__footer {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .dp-hero__place {
    max-width: calc(100vw - 84px);
    font-size: clamp(.82rem, 3.3vw, .95rem);
    line-height: 1.12;
    letter-spacing: -.005em;
  }

  .dp-hero__copy {
    bottom: 92px;
  }

  .dp-hero__subtitle {
    margin-top: 16px;
    font-size: .98rem;
    line-height: 1.55;
  }
}

@media (max-width: 360px) {
  .dp-hero__arrow {
    top: 43%;
  }

  .dp-hero__place {
    font-size: .8rem;
    line-height: 1.1;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .dp-hero__viewport {
    height: 78svh;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-hero__slide,
  .dp-hero__cta,
  .dp-hero__dot span {
    transition: none;
  }

  .dp-hero__progress {
    display: none;
  }
}
