/* Cinematic media layer, confined to the transport hero. Existing links,
   booking controls, service copy and supplementary panels keep their behavior. */
.enb-transport-hero[data-enb-transport-hero] {
  --enb-hero-gutter: clamp(20px, 5vw, 88px);
  --enb-hero-object-position: var(--enb-hero-position-desktop, center);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 590px;
  min-height: min(840px, max(590px, calc(100svh - var(--enbHeaderH, 72px))));
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #080b10;
  border-radius: 0;
  text-align: left;
}

/* Each service uses its own framing. Only the verified portrait Vito clip
   needs the vehicle held toward the right on narrow screens. */
@media (max-width: 640px) {
  .enb-transport-hero[data-enb-transport-hero] {
    --enb-hero-object-position: var(--enb-hero-position-mobile, center);
  }
  .enb-transport-hero[data-enb-transport-hero][data-enb-hero-profile="vito"] {
    --enb-hero-object-position: var(--enb-hero-position-mobile, 85% center);
  }
}

/* Legacy hero themes use decorative pseudo-elements. The video owns its own
   gradient now, so those effects must not cover the actual footage. */
.enb-transport-hero[data-enb-transport-hero]::before,
.enb-transport-hero[data-enb-transport-hero]::after {
  content: none;
}

.enb-transport-hero .enb-transport-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #080b10;
}

.enb-transport-hero .enb-transport-hero__media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .82), transparent 45%),
    linear-gradient(90deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .42) 64%, rgba(0, 0, 0, .15));
}

.enb-transport-hero .enb-transport-hero__poster,
.enb-transport-hero [data-enb-hero-video] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: var(--enb-hero-object-position);
  border: 0;
  border-radius: 0;
}

.enb-transport-hero [data-enb-hero-video] {
  z-index: 1;
  opacity: 0;
  transition: opacity .35s ease;
}

.enb-transport-hero[data-enb-hero-state="playing"][data-enb-hero-frame="true"] [data-enb-hero-video] {
  opacity: 1;
}

/* A category illustration is framed as a complete drawing, with the headline
   above it on small screens. It is never cropped into an apparent photo. */
.enb-transport-hero[data-enb-hero-illustration="true"] .enb-transport-hero__poster {
  object-fit: contain;
  object-position: center bottom;
}

.enb-transport-hero[data-enb-hero-illustration="true"] .enb-transport-hero__media::after {
  background: linear-gradient(180deg, rgba(8, 11, 16, .76), rgba(8, 11, 16, .3) 46%, rgba(8, 11, 16, .08) 75%, rgba(8, 11, 16, .35));
}

@media (max-width: 640px) {
  .enb-transport-hero[data-enb-hero-illustration="true"] .enb-transport-hero__content {
    padding-bottom: clamp(130px, 36vw, 230px);
  }
  .enb-transport-hero[data-enb-hero-illustration="true"] .enb-transport-hero__poster {
    object-position: center calc(100% - 70px);
  }
}

.enb-transport-hero [data-enb-hero-legacy-media] {
  display: none;
}

.enb-transport-hero .enb-transport-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  padding: 48px var(--enb-hero-gutter) 32px;
  text-align: left;
}

/* Utility-page hero wrappers were centered within a much shorter image strip. */
.enb-transport-hero .enb-transport-hero__content > .relative.z-10 {
  width: 100%;
  max-width: 900px;
  margin-inline: 0;
  padding-inline: 0;
  text-align: left;
}

.enb-transport-hero .enb-transport-hero__content > .relative.z-10 > p,
.enb-transport-hero .enb-transport-hero__content > .relative.z-10 > .text-center {
  margin-inline: 0;
  text-align: left;
}

.enb-transport-hero .enb-transport-hero__content > .relative.z-10 > .flex {
  align-items: flex-start;
  justify-content: flex-start;
}

.enb-transport-hero .enb-transport-hero__content h1 {
  max-width: 22ch;
  margin-inline: 0;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.enb-transport-hero .enb-transport-hero__content :is(.sx-hero__copy, .enb-sales-hero__copy, .sv-hero__intro, .ev-hero__intro, .os-hero__copy) {
  min-width: 0;
  text-align: left;
}

.enb-transport-hero .enb-transport-hero__content :is(.sx-shell, .enb-sales-wrap, .sv-shell, .os-shell) {
  width: 100%;
  max-width: var(--enb-content-shell, 1552px);
  margin-inline: 0;
}

/* The event-valet template hard-codes viewport widths and padding !important.
   These two compatibility rules avoid a second viewport-wide shell inside the
   new padded wrapper; they do not affect any other section on those pages. */
.enb-transport-hero .enb-transport-hero__content .ev-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

.enb-transport-hero.ev-hero[data-enb-transport-hero] {
  padding: 0 !important;
}

.enb-transport-hero .enb-transport-hero__content :is(.sx-hero__grid, .enb-sales-hero__grid, .sv-hero__grid, .ev-hero__grid, .os-hero__grid) {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding-block: 0;
  text-align: left;
}

.enb-transport-hero .enb-transport-hero__content :is(.sx-hero__lead, .sx-hero__text, .sx-hero__facts, .enb-sales-lead) {
  margin-inline: 0;
}

.enb-transport-hero .enb-transport-hero__content :is(.sx-hero__actions, .enb-sales-actions, .enb-sales-trust, .enb-sales-note) {
  justify-content: flex-start;
}

.enb-transport-hero .enb-transport-hero__content :is(.sv-route-card, .ev-ops-card, .os-intent-card, .sx-hero__media, .enb-sales-visual) {
  min-width: 0;
  max-width: 100%;
}

.enb-transport-hero .enb-transport-hero__controls {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  width: 100%;
  min-height: 74px;
  margin-top: auto;
  padding: 0 var(--enb-hero-gutter) 26px;
}

.enb-transport-hero [data-enb-hero-toggle] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 9px;
  min-width: 48px;
  min-height: 48px;
  max-width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.enb-transport-hero [data-enb-hero-toggle]:hover {
  border-color: #fff;
  background: rgba(0, 0, 0, .75);
}

.enb-transport-hero [data-enb-hero-toggle]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.enb-transport-hero [data-enb-hero-toggle]:disabled {
  cursor: default;
}

.enb-transport-hero [data-enb-hero-toggle][hidden],
.enb-transport-hero [data-enb-hero-status][hidden] {
  display: none;
}

.enb-transport-hero [data-enb-hero-toggle] svg {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.enb-transport-hero [data-enb-hero-icon="pause"],
.enb-transport-hero[data-enb-hero-state="playing"] [data-enb-hero-icon="play"],
.enb-transport-hero[data-enb-hero-state="loading"] [data-enb-hero-icon="play"] {
  display: none;
}

.enb-transport-hero[data-enb-hero-state="playing"] [data-enb-hero-icon="pause"],
.enb-transport-hero[data-enb-hero-state="loading"] [data-enb-hero-icon="pause"] {
  display: block;
}

.enb-transport-hero [data-enb-hero-status] {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  line-height: 1.5;
}

.enb-transport-hero .enb-transport-hero__explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(0, 0, 0, .32);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.enb-transport-hero .enb-transport-hero__explore:hover {
  border-color: #fff;
  background: rgba(0, 0, 0, .7);
}

.enb-transport-hero .enb-transport-hero__explore:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (min-width: 641px) {
  .enb-transport-hero .enb-transport-hero__content {
    padding-top: clamp(56px, 9vh, 100px);
    padding-bottom: 42px;
  }

  .enb-transport-hero .enb-transport-hero__controls {
    padding-bottom: 32px;
  }
}

@media (min-width: 981px) {
  .enb-transport-hero[data-enb-transport-hero] {
    min-height: 680px;
    min-height: min(900px, max(680px, calc(100svh - var(--enbHeaderH, 88px))));
  }

  .enb-transport-hero .enb-transport-hero__content :is(.sx-hero__grid, .enb-sales-hero__grid, .sv-hero__grid, .ev-hero__grid, .os-hero__grid) {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(32px, 5vw, 76px);
  }

  .enb-transport-hero .enb-transport-hero__media::after {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, .86), transparent 42%),
      linear-gradient(90deg, rgba(0, 0, 0, .81), rgba(0, 0, 0, .42) 48%, rgba(0, 0, 0, .12));
  }
}

@media (prefers-reduced-motion: reduce) {
  .enb-transport-hero [data-enb-hero-video],
  .enb-transport-hero [data-enb-hero-toggle] {
    transition: none;
  }
}
