/* ==========================================================================
   Component — Hero Slider
   Multi-service hero. One slide per service, each tinted by --wu-service so
   the deck re-colours itself with the active color scheme.

   Markup contract — the JS keys off [data-slide], the classes only style:
     <section class="wu-hero-slider" data-wu-slider data-autoplay="6000">
       <div class="wu-slides">
         <article class="wu-slide is-active" data-slide data-service="hotel">…</article>
       </div>
       <button data-slider-prev> <button data-slider-next>
       <div data-slider-dots></div>
     </section>

   Photography: set --slide-image on each slide. Without it the slide falls
   back to a service-tinted gradient, so the template ships looking finished
   even with no images in img/banners/.
   ========================================================================== */

.wu-hero-slider {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--wu-ink-deep);
}

.wu-slides {
  display: grid;              /* all slides stacked in one cell */
  min-height: clamp(520px, 78vh, 760px);
}

.wu-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  padding-block: var(--wu-space-9) var(--wu-space-8);
  color: var(--wu-text-invert);

  /* Dark scrim first so headline text keeps contrast over any photograph. */
  background-image:
    linear-gradient(100deg, rgba(9, 14, 22, .88) 0%, rgba(9, 14, 22, .55) 48%, rgba(9, 14, 22, .18) 100%),
    var(--slide-image, linear-gradient(140deg, color-mix(in srgb, var(--wu-service) 65%, var(--wu-ink-deep)), var(--wu-ink-deep)));
  background-size: cover;
  background-position: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wu-duration-lg) var(--wu-ease),
              visibility var(--wu-duration-lg);
}

.wu-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Slow zoom while a slide is on screen. Only the active slide animates, so
   idle slides cost nothing. */
.wu-slide.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  animation: wu-ken-burns 12s var(--wu-ease-out) forwards;
}

.wu-slide-body { max-width: 640px; }
.wu-slide-body > * { margin-bottom: var(--wu-space-4); }
.wu-slide-body > *:last-child { margin-bottom: 0; }

.wu-slide h1,
.wu-slide h2 {
  color: inherit;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}
.wu-slide p {
  font-size: var(--wu-fs-lg);
  opacity: .92;
  max-width: 52ch;
}

.wu-slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-2);
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--wu-radius-pill);
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-semibold);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wu-slide-eyebrow .wu-service-dot { background: var(--wu-service); }

/* Entrance stagger — replayed each time the slide becomes active. */
.wu-slide.is-active .wu-slide-body > * {
  animation: wu-fade-up var(--wu-duration-lg) var(--wu-ease-out) backwards;
}
.wu-slide.is-active .wu-slide-body > *:nth-child(1) { animation-delay: .10s; }
.wu-slide.is-active .wu-slide-body > *:nth-child(2) { animation-delay: .18s; }
.wu-slide.is-active .wu-slide-body > *:nth-child(3) { animation-delay: .26s; }
.wu-slide.is-active .wu-slide-body > *:nth-child(4) { animation-delay: .34s; }

/* --- Controls ------------------------------------------------------------ */
.wu-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--wu-duration-sm) var(--wu-ease),
              border-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-slider-arrow:hover { background: rgba(255, 255, 255, .28); border-color: rgba(255, 255, 255, .6); }
.wu-slider-arrow svg { width: 20px; height: 20px; }
.wu-slider-prev { left: var(--wu-space-5); }
.wu-slider-next { right: var(--wu-space-5); }

.wu-slider-dots {
  position: absolute;
  left: 50%;
  bottom: var(--wu-space-6);
  z-index: 3;
  display: flex;
  gap: var(--wu-space-2);
  transform: translateX(-50%);
}

.wu-slider-dot {
  /* The dash stays 4px; the tap target must not. content-box keeps `height`
     meaning the dash while the padding grows the hit area to 28px, and
     background-clip stops the tint filling that padding. 34x4 fails WCAG
     2.5.8, and a slider dot is exactly the control a thumb misses.

     background-COLOR, not the shorthand, in this rule and in every state
     below: `background:` resets background-clip to border-box and the dash
     would swell to the full target on hover. */
  box-sizing: content-box;
  width: 34px;
  height: 4px;
  padding: 12px 0;
  background-clip: content-box;
  border: 0;
  border-radius: var(--wu-radius-pill);
  background-color: rgba(255, 255, 255, .35);
  cursor: pointer;
  overflow: hidden;
  transition: background-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-slider-dot:hover { background-color: rgba(255, 255, 255, .6); }
.wu-slider-dot.is-active { background-color: rgba(255, 255, 255, .35); }

/* The active dot doubles as an autoplay progress bar. */
.wu-slider-dot.is-active::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}
.wu-slider-dot.is-active.is-ticking::after {
  animation: wu-dot-progress var(--wu-slide-duration, 6000ms) linear forwards;
}

/* --- Trust strip under the slider ---------------------------------------- */
.wu-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wu-space-6);
  margin-top: var(--wu-space-6);
  font-size: var(--wu-fs-sm);
  opacity: .92;
}
.wu-hero-stats strong { display: block; font-size: var(--wu-fs-xl); }

/* --- Overlap reservation -------------------------------------------------
   Add .wu-hero-overlap when a floating search widget rides up over the bottom
   of the deck. It reserves --wu-search-overlap at the foot of the slide, so a
   headline that wraps to an extra line grows the deck instead of pushing the
   buttons under the widget — the slides share one grid cell, so the row simply
   grows to the tallest slide and everything stays clear.

   Without this class (the header variant pages, any hero with nothing floating
   over it) the deck keeps its normal padding and no space is wasted.
   -------------------------------------------------------------------------- */
.wu-hero-overlap .wu-slide,
.wu-hero-overlap .wu-carousel-slide {
  padding-bottom: calc(var(--wu-space-8) + var(--wu-search-overlap));
}
.wu-hero-overlap .wu-slider-dots {
  bottom: calc(var(--wu-space-6) + var(--wu-search-overlap));
}
/* Centre the arrows on the visible strip, not on the full deck — the bottom
   --wu-search-overlap of it is behind the widget. */
.wu-hero-overlap .wu-slider-arrow {
  top: calc(50% - var(--wu-search-overlap) / 2);
}

@keyframes wu-ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

@keyframes wu-dot-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (max-width: 991.98px) {
  .wu-slides { min-height: 560px; }
  .wu-slider-arrow { display: none; }   /* swipe takes over */
  /* Except in a carousel: those arrows sit in normal flow under the track
     rather than floating over the artwork, so there is nothing for them to
     get in the way of, and dots alone in a nav row look unfinished. */
  .wu-carousel-nav .wu-slider-arrow { display: inline-flex; }
  .wu-slide { padding-block: var(--wu-space-8) var(--wu-space-9); }
  /* Matches the specificity of the .wu-hero-overlap rule above so the reserved
     padding is dropped here too — on mobile the widget sits below the hero
     (see responsive.css), so there is nothing to reserve for. */
  .wu-hero-overlap .wu-slide { padding-block: var(--wu-space-8) var(--wu-space-9); }
}

@media (max-width: 575.98px) {
  .wu-slides { min-height: 500px; }
  .wu-slide p { font-size: var(--wu-fs-base); }
  .wu-hero-stats { gap: var(--wu-space-4); }
  .wu-hero-stats strong { font-size: var(--wu-fs-lg); }
}

/* No autoplay, no zoom, no stagger when motion is reduced. The slider JS also
   skips its timer — this only covers what CSS owns. */
@media (prefers-reduced-motion: reduce) {
  .wu-slide.is-active::before,
  .wu-slide.is-active .wu-slide-body > *,
  .wu-slider-dot.is-active.is-ticking::after { animation: none; }
  .wu-slider-dot.is-active::after { transform: scaleX(1); }
}

/* ==========================================================================
   Hero variants — video, single image
   Both reuse .wu-slide for the body, so the headline, scrim and search
   overlap behave exactly as they do on the slider hero.
   ========================================================================== */

/* --- Video hero ----------------------------------------------------------
   The <video> sits behind the same scrim the slides use. It is decoration:
   muted, looped, playsinline, and it carries a poster so the frame is never
   blank while it buffers — or if the browser refuses to autoplay it at all.
   -------------------------------------------------------------------------- */
.wu-hero-video { position: relative; isolation: isolate; overflow: hidden; background: var(--wu-ink-deep); }

.wu-hero-video-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.wu-hero-video-media video,
.wu-hero-video-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Same scrim as .wu-slide, painted over the video rather than under a photo. */
.wu-hero-video-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(9, 14, 22, .88) 0%, rgba(9, 14, 22, .55) 48%, rgba(9, 14, 22, .18) 100%);
}

/* The template ships no video file, the same way it ships no photography. So
   the poster drifts instead: the layout, the scrim and the controls are all
   real, and dropping an .mp4 into the markup replaces this with the real
   thing. A still frame labelled "video header" would be a lie. */
.wu-hero-video-poster {
  animation: wu-hero-drift 24s ease-in-out infinite alternate;
  transform-origin: center;
}
.wu-hero-video.is-paused .wu-hero-video-poster,
.wu-hero-video.is-paused video { animation-play-state: paused; }

@keyframes wu-hero-drift {
  from { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
  to   { transform: scale(1.14) translate3d(1.5%, 1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .wu-hero-video-poster { animation: none; transform: scale(1.06); }
}

.wu-hero-video .wu-slide {
  background-image: none;
  opacity: 1;
  visibility: visible;
}

/* Sound is never on, so the only control worth offering is play/pause — for
   anyone who finds movement behind text distracting. */
.wu-video-toggle {
  position: absolute;
  right: var(--wu-space-5);
  bottom: var(--wu-space-5);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-2);
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(9, 14, 22, .45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: var(--wu-fs-xs);
  cursor: pointer;
}
.wu-video-toggle:hover { background: rgba(9, 14, 22, .7); }
.wu-video-toggle svg { width: 14px; height: 14px; }

/* --- Single image hero --------------------------------------------------- */
.wu-hero-image { position: relative; isolation: isolate; overflow: hidden; background: var(--wu-ink-deep); }
.wu-hero-image .wu-slide { opacity: 1; visibility: visible; }

/* Centred variant: the scrim has to be symmetrical or the text looks adrift.
   This is the answer to the open question in the main hero — there, the copy
   is left-aligned to match a left-heavy gradient. */
.wu-hero-image.wu-hero-centered .wu-slide {
  justify-content: center;
  text-align: center;
  background-image:
    linear-gradient(rgba(9, 14, 22, .72), rgba(9, 14, 22, .72)),
    var(--slide-image, linear-gradient(140deg, var(--wu-service), var(--wu-ink-deep)));
}
.wu-hero-image.wu-hero-centered .wu-slide-body { margin-inline: auto; }
.wu-hero-image.wu-hero-centered .wu-slide-actions { justify-content: center; }

/* ==========================================================================
   Carousel — multi-item track (slider.js, data-per-view)
   ========================================================================== */
.wu-carousel { position: relative; }

.wu-carousel-viewport {
  overflow: hidden;
  /* Room for the card shadow and the lift on hover, which a plain
     overflow:hidden would slice off. */
  margin: calc(var(--wu-space-2) * -1);
  padding: var(--wu-space-2);
}

.wu-carousel-track {
  display: flex;
  gap: 0;
  transition: transform var(--wu-duration-lg) var(--wu-ease);
  will-change: transform;
}

/* The item width is the whole responsive rule: JS only writes the number. */
.wu-carousel-track > [data-slide] {
  flex: 0 0 calc(100% / var(--wu-per-view, 3));
  min-width: 0;
  padding-inline: var(--wu-space-3);
}

.wu-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wu-space-3);
  margin-top: var(--wu-space-5);
}
.wu-carousel-nav .wu-slider-arrow {
  position: static;
  transform: none;
  background: var(--wu-surface);
  border-color: var(--wu-border-strong);
  color: var(--wu-heading);
}
.wu-carousel-nav .wu-slider-arrow:hover {
  background: var(--wu-primary);
  border-color: var(--wu-primary);
  color: #fff;
}
.wu-carousel-nav .wu-slider-dots { position: static; transform: none; }
.wu-carousel-nav .wu-slider-dot { background-color: var(--wu-border-strong); }
/* The hero dot doubles as an autoplay progress bar, painted by ::after. A
   carousel that does not autoplay would show a permanently empty bar, so the
   active state is a solid fill here instead. */
.wu-carousel-nav .wu-slider-dot.is-active { background: var(--wu-primary); }
.wu-carousel-nav .wu-slider-dot.is-active::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .wu-carousel-track { transition: none; }
}

/* ==========================================================================
   Carousel hero — one full-bleed slide at a time

   The difference from the deck hero is the motion, not the layout: the deck
   cross-fades slides stacked in one grid cell, this one SLIDES a track. Both
   show a single slide, both are full width.

   It reuses .wu-slide-body, so the eyebrow, headline and buttons are typeset
   once for every hero in the template.
   ========================================================================== */
.wu-carousel-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--wu-ink-deep);
}

/* Full bleed: the content carousel insets its viewport to let card shadows
   breathe, which a hero has no use for. */
.wu-carousel-hero .wu-carousel-viewport { margin: 0; padding: 0; }
.wu-carousel-hero .wu-carousel-track > [data-slide] { padding-inline: 0; }

.wu-carousel-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(520px, 78vh, 760px);
  padding-block: var(--wu-space-9) var(--wu-space-8);
  text-align: center;
  color: var(--wu-text-invert);

  /* Same scrim as the deck, so a headline keeps its contrast over any
     photograph a buyer drops in. */
  background-image:
    linear-gradient(rgba(9, 14, 22, .72), rgba(9, 14, 22, .72)),
    var(--slide-image, linear-gradient(140deg, color-mix(in srgb, var(--wu-service) 65%, var(--wu-ink-deep)), var(--wu-ink-deep)));
  background-size: cover;
  background-position: center;
}

.wu-carousel-slide .wu-slide-body { max-width: 720px; margin-inline: auto; }
.wu-carousel-slide .wu-slide-actions { justify-content: center; }

.wu-carousel-slide h1,
.wu-carousel-slide h2 {
  color: inherit;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.wu-carousel-slide p { font-size: var(--wu-fs-lg); color: rgba(255, 255, 255, .88); }

/* The arrows and dots overlay the artwork here rather than sitting in a row
   underneath, so they are left OUT of .wu-carousel-nav and pick up the deck
   hero's absolute positioning instead. */
.wu-carousel-hero .wu-slider-dots { z-index: 3; }
.wu-carousel-hero .wu-slider-arrow { z-index: 3; }

/* The entrance stagger the deck runs on .is-active would fire on every slide
   at once here, because a track keeps them all in the document. */
@media (prefers-reduced-motion: no-preference) {
  .wu-carousel-hero .wu-carousel-track { transition-duration: var(--wu-duration-lg); }
}

/* The video hero reserves the same height as the slider deck it replaces, so
   the floating search panel lands in the same place on every homepage. */
.wu-hero-video .wu-slides { min-height: clamp(520px, 78vh, 760px); }

/* ==========================================================================
   PANEL DỊCH VỤ TRÊN HERO

   Slider vẫn tràn hết chiều ngang như cũ, nhưng nó không còn là một tấm ảnh
   có chữ đè lên và hết. Nửa phải của nó là một bảng dữ liệu thật, đổ từ
   assets/data/*.json: bốn dịch vụ trộn lẫn, xếp theo giá, có thumbnail 56px
   và giá của từng dòng.

   Đây là chỗ trả lời câu từ chối của Envato. "header-banner-teasers" là một
   cái banner rồi mới tới ba cái card giới thiệu ở section sau; ở đây thứ mà
   thường phải cuộn xuống mới thấy đã nằm ngay trên banner, và nó là dữ liệu
   chứ không phải teaser.

   Ba lớp chồng lên nhau, tất cả đều neo vào .wu-hero-slider:
     .wu-slides            ảnh + chữ
     .wu-hero-controls     mũi tên + dots, gom ở góc dưới-trái
     .wu-hero-panel-wrap   panel, mép phải trùng mép phải của .wu-container
   ========================================================================== */

/* --- Cụm điều khiển -------------------------------------------------------
   Mũi tên không còn ở hai mép màn hình được nữa: mép phải là chỗ của panel,
   và trên laptop 1366px thì .wu-container gần chạm mép nên mũi tên "next" sẽ
   nằm đè lên panel. Gom cả hai với dots thành một cụm ở góc dưới-trái, dùng
   flex thay vì tính toạ độ từng cái.

   inset-inline-start bám theo mép trái của .wu-container khi màn đủ rộng, và
   rơi về --wu-space-5 khi container đã chạm mép — nên cụm nút luôn thẳng hàng
   với chữ trên slide.

   --wu-search-overlap là dải bị widget tìm kiếm che; ở dưới 992px token này
   bằng 0 (responsive.css) nên phép tính tự đúng ở cả hai bên breakpoint. */
.wu-hero-controls {
  position: absolute;
  z-index: 3;
  inset-inline-start: max(var(--wu-space-5), 50% - var(--wu-container-max) / 2 + var(--wu-space-4));
  bottom: calc(var(--wu-space-6) + var(--wu-search-overlap));
  display: flex;
  align-items: center;
  gap: var(--wu-space-4);
}
/* position: static thắng mọi toạ độ mà .wu-hero-overlap đặt cho hai lớp này,
   nên không cần gỡ lại từng thuộc tính một. */
.wu-hero-controls .wu-slider-arrow {
  position: static;
  transform: none;
  width: 42px;
  height: 42px;
}
.wu-hero-controls .wu-slider-dots {
  position: static;
  transform: none;
}

/* --- Panel ----------------------------------------------------------------
   Wrapper mang luôn class .wu-container, nên max-width và padding của lưới
   trang áp cho nó y như cho chữ trên slide — mép phải của panel thẳng hàng
   với mép phải của khối chữ, không phải một con số đoán.

   inset-block chính là câu "canh cho khớp chiều cao": trên bằng padding đầu
   slide, dưới đúng chỗ widget tìm kiếm bắt đầu. Panel không tự cao theo số
   dòng nữa; danh sách bên trong cuộn. */
.wu-hero-has-panel {
  /* Mặc định: header nằm trong dòng chảy phía trên hero (vd. header float),
     không đè lên nó, nên chỉ cần một khoảng đệm bình thường. */
  --wu-hero-top: var(--wu-space-8);
}
/* Header trong suốt (và utility rail phía trên nó) là position:absolute, tức là
   nằm ĐÈ lên phần đầu của hero. Khi đó đỉnh vùng dùng được phải bắt đầu dưới
   hai lớp đó. <header> và <main> là anh em trong <body>, nên ~ bắt được. */
.wu-header-transparent ~ main .wu-hero-has-panel {
  --wu-hero-top: calc(var(--wu-utility-height) + var(--wu-header-height) + var(--wu-space-6));
}

.wu-hero-panel-wrap {
  position: absolute;
  /* Đáy dùng đúng phép tính của .wu-hero-controls, nên đáy panel và đáy hàng
     nút điều khiển nằm trên cùng một đường ngang. */
  inset-block: var(--wu-hero-top) calc(var(--wu-space-6) + var(--wu-search-overlap));
  inset-inline: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  /* Wrapper trải hết chiều ngang nên nó sẽ nuốt cú click vào nửa trái của
     slide nếu không tắt. Panel bật lại cho riêng nó. */
  pointer-events: none;
}

/* Chữ trên slide phải dừng lại trước panel. Giới hạn đặt lên CON của
   .wu-slide-body chứ không lên chính nó: .wu-slide-body cũng là .wu-container
   (margin-inline: auto), nên thu max-width của nó sẽ đẩy cả khối chữ vào giữa
   màn hình thay vì giữ nó thẳng mép trái với logo và widget tìm kiếm. */
.wu-hero-has-panel .wu-slide-body { max-width: var(--wu-container-max); }
.wu-hero-has-panel .wu-slide-body > * { max-width: min(36rem, 52%); }

/* Chữ trên slide và panel dùng CHUNG một dải dọc: padding-top của slide bằng
   đỉnh panel, padding-bottom (từ .wu-hero-overlap) bằng đáy panel. Slide căn
   giữa theo chiều dọc, nên khối chữ luôn nằm giữa đúng khoảng mà panel chiếm.
   Chỉ từ 992px trở lên — dưới đó panel đã rơi về dòng chảy bình thường và
   rule padding-block của mobile phải được giữ nguyên. */
@media (min-width: 992px) {
  .wu-hero-has-panel .wu-slide { padding-top: var(--wu-hero-top); }
}

/* --- Bảng trực tiếp -------------------------------------------------------
   Dòng, không phải card: không bo góc, không viền quanh từng mục. Phân tách
   bằng một đường kẻ ngang. Nền đục hẳn chứ không trong mờ — chữ 12-14px trên
   kính mờ đặt trên ảnh là không đọc được, và tỉ lệ tương phản khi đó phụ
   thuộc vào tấm ảnh mà buyer thay vào. */
.wu-hero-live {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: min(23rem, 42%);
  height: 100%;
  border: 1px solid var(--wu-border-strong);
  background: var(--wu-surface);
  box-shadow: var(--wu-shadow-lg);
}
.wu-hero-live-head {
  display: flex;
  align-items: center;
  gap: var(--wu-space-2);
  flex: none;
  padding: var(--wu-space-4) var(--wu-space-5);
  border-bottom: 1px solid var(--wu-border-strong);
}
.wu-hero-live-head h2 {
  flex: 1;
  margin: 0;
  font-family: var(--wu-font-body);
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-semibold);
  letter-spacing: var(--wu-tracking-label);
  text-transform: uppercase;
}
.wu-hero-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wu-success);
  animation: wu-live-pulse 2.4s var(--wu-ease) infinite;
}
@keyframes wu-live-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.wu-hero-live-time {
  font-size: var(--wu-fs-xs);
  color: var(--wu-text-muted);
}

/* flex:1 + min-height:0 là một cặp bắt buộc: thiếu min-height thì một flex
   item không co xuống dưới kích thước nội dung của nó, và panel sẽ dài quá
   đáy vùng đã dành cho nó. */
.wu-hero-live-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Chiều cao panel đi theo slide chứ không theo số dòng, nên dòng cuối gần
     như luôn bị cắt ngang. Dải mờ 28px biến vết cắt đó thành tín hiệu "cuộn
     tiếp được" thay vì trông như lỗi. */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 28px), transparent);
}
.wu-live-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--wu-space-3);
  padding: var(--wu-space-3) var(--wu-space-5);
  color: inherit;
  text-decoration: none;
}
.wu-hero-live-list li + li .wu-live-row,
.wu-hero-live-list li + li.wu-live-empty { border-top: 1px solid var(--wu-border); }
.wu-live-row:hover { background: var(--wu-surface-alt); }

.wu-live-thumb {
  width: 56px; height: 42px;
  object-fit: cover;
  background: var(--wu-surface-sunken);
}
.wu-live-body { min-width: 0; }
.wu-live-body b {
  display: block;
  font-size: var(--wu-fs-sm);
  font-weight: var(--wu-fw-medium);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wu-live-meta {
  display: block;
  margin-top: 1px;
  font-size: var(--wu-fs-xs);
  color: var(--wu-text-muted);
}
.wu-live-meta i {
  font-style: normal;
  color: var(--wu-service-text);
}
.wu-live-price {
  font-family: var(--wu-font-display);
  font-size: var(--wu-fs-lg);
  font-variant-numeric: tabular-nums;
  color: var(--wu-heading);
  white-space: nowrap;
}
.wu-live-empty {
  padding: var(--wu-space-5);
  font-size: var(--wu-fs-sm);
  color: var(--wu-text-muted);
}

.wu-hero-live-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wu-space-2);
  flex: none;
  padding: var(--wu-space-4) var(--wu-space-5);
  border-top: 1px solid var(--wu-border-strong);
  font-size: var(--wu-fs-sm);
  font-weight: var(--wu-fw-semibold);
  color: var(--wu-primary);
  text-decoration: none;
}
.wu-hero-live-all svg { width: 16px; height: 16px; transition: transform var(--wu-duration-sm) var(--wu-ease); }
.wu-hero-live-all:hover svg { transform: translateX(3px); }

@media (max-width: 1199.98px) {
  /* Container hẹp lại thì 42% của nó không còn đủ cho một dòng như "Kyoto
     Evening Food Walk · $89"; nhường thêm chiều ngang cho panel, bớt của chữ. */
  .wu-hero-live { width: min(21rem, 46%); }
  .wu-hero-has-panel .wu-slide-body > * { max-width: 50%; }
}

@media (max-width: 991.98px) {
  /* position: static trả wrapper về dòng chảy, đúng vị trí DOM của nó — ngay
     sau slides và cụm điều khiển. Ở breakpoint này --wu-search-overlap đã là
     0 và widget tìm kiếm cũng đã thôi trôi, nên không có gì đè lên panel. */
  .wu-hero-panel-wrap {
    position: static;
    display: block;
    padding-block: 0 var(--wu-space-6);
  }
  .wu-hero-live { width: 100%; height: auto; }
  .wu-hero-live-list { max-height: 18rem; }
  .wu-hero-has-panel .wu-slide-body > * { max-width: none; }
  /* Mũi tên đã bị ẩn ở breakpoint này (vuốt thay thế), chỉ còn dots; cần
     khoảng đệm cả trên lẫn dưới, không thì dots dính vào mép trên panel. */
  .wu-hero-controls { position: static; padding: var(--wu-space-4) var(--wu-space-4) var(--wu-space-5); }
}

@media (max-width: 575.98px) {
  .wu-live-row { grid-template-columns: 44px minmax(0, 1fr) auto; padding-inline: var(--wu-space-4); }
  .wu-live-thumb { width: 44px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .wu-hero-live-dot { animation: none; }
  .wu-hero-live-all svg { transition: none; }
}

/* ==========================================================================
   VIDEO HERO — FARE TICKER (index-video.html)

   A strip of live routes pinned to the foot of the video, directly above the
   band the floating search overlaps. The hero carries prices before anyone
   scrolls, instead of being a backdrop with a headline on it.

   Without JavaScript, or with reduced motion, the strip is a plain row you
   can scroll. js/pages/home.js adds .is-running once it has doubled the list.
   ========================================================================== */
.wu-hero-has-ticker {
  --wu-ticker-h: 56px;
  /* js/pages/home.js overrides this on the strip from the number of
     routes, so the scroll speed stays the same however many there are. */
  --wu-ticker-duration: 60s;
}

.wu-ticker {
  position: absolute;
  inset-inline: 0;
  bottom: var(--wu-search-overlap);
  z-index: 2;
  display: flex;
  align-items: stretch;
  height: var(--wu-ticker-h);
  border-block: 1px solid rgba(255, 255, 255, .12);
  /* Dense enough that the white text clears 4.5:1 over a white frame of the
     video, not only over the dark ones. */
  background: rgba(9, 14, 22, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}

/* Percent padding resolves against the strip, so the label starts on the
   same line as the page container whatever the viewport width. */
.wu-ticker-label {
  display: flex;
  align-items: center;
  gap: var(--wu-space-2);
  flex: none;
  margin: 0;
  padding-inline: max(var(--wu-space-4), calc(50% - var(--wu-container-max) / 2 + var(--wu-space-4))) var(--wu-space-5);
  border-inline-end: 1px solid rgba(255, 255, 255, .14);
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-semibold);
  letter-spacing: var(--wu-tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.wu-ticker-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5FCB95;
  animation: wu-live-pulse 2.4s var(--wu-ease) infinite;
}

.wu-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.wu-ticker:not(.is-running) .wu-ticker-viewport {
  overflow-x: auto;
  scrollbar-width: none;
}

.wu-ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wu-ticker.is-running .wu-ticker-track {
  animation: wu-ticker var(--wu-ticker-duration) linear infinite;
}
/* Anyone reading a fare, or tabbing to one, gets it to hold still. */
.wu-ticker:hover .wu-ticker-track,
.wu-ticker:focus-within .wu-ticker-track { animation-play-state: paused; }

@keyframes wu-ticker     { to { transform: translateX(-50%); } }
@keyframes wu-ticker-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .wu-ticker.is-running .wu-ticker-track { animation-name: wu-ticker-rtl; }

.wu-ticker-track > li { display: flex; }
.wu-ticker-item {
  display: flex;
  align-items: center;
  gap: var(--wu-space-2);
  padding-inline: var(--wu-space-5);
  border-inline-end: 1px solid rgba(255, 255, 255, .10);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.wu-ticker-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.wu-ticker-item:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.wu-ticker-item b {
  font-size: var(--wu-fs-sm);
  font-weight: var(--wu-fw-semibold);
  letter-spacing: .02em;
}
.wu-ticker-item span {
  font-size: var(--wu-fs-xs);
  color: rgba(255, 255, 255, .74);
}
.wu-ticker-item em {
  font-family: var(--wu-font-display);
  font-size: var(--wu-fs-lg);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: #E3B341;
}

/* The pause control moves up onto the video, clear of the strip. */
.wu-hero-has-ticker .wu-video-toggle {
  bottom: calc(var(--wu-search-overlap) + var(--wu-ticker-h) + var(--wu-space-4));
}

@media (min-width: 992px) {
  /* The headline keeps clear of the strip as well as of the search. Below
     992px the overlap is zero and the slide's own bottom padding is deeper
     than the strip, so nothing needs reserving. */
  .wu-hero-has-ticker .wu-slide {
    padding-bottom: calc(var(--wu-space-8) + var(--wu-search-overlap) + var(--wu-ticker-h));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wu-ticker-label::before { animation: none; }
}

/* ==========================================================================
   CAROUSEL HERO — DESTINATION FILMSTRIP (index-carousel.html)

   One frame per slide, along the foot of the photograph. It stands in for
   the dots: a thumbnail with a name and a price says where a slide goes.
   ========================================================================== */
.wu-hero-has-film { --wu-film-h: 76px; }

.wu-film {
  position: absolute;
  inset-inline: 0;
  bottom: calc(var(--wu-search-overlap) + var(--wu-space-5));
  z-index: 3;
}

.wu-film-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--wu-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wu-film-frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--wu-space-3);
  width: 100%;
  height: var(--wu-film-h);
  padding: var(--wu-space-2) var(--wu-space-3) var(--wu-space-2) var(--wu-space-2);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(9, 14, 22, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color var(--wu-duration-sm) var(--wu-ease),
              border-color var(--wu-duration-sm) var(--wu-ease),
              transform var(--wu-duration-sm) var(--wu-ease);
}
.wu-film-frame:hover { background: rgba(9, 14, 22, .8); border-color: rgba(255, 255, 255, .4); }
.wu-film-frame:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wu-film-frame img {
  flex: none;
  width: 76px;
  height: 100%;
  object-fit: cover;
}

.wu-film-text { min-width: 0; }
.wu-film-text b {
  display: block;
  overflow: hidden;
  font-size: var(--wu-fs-sm);
  font-weight: var(--wu-fw-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wu-film-text span {
  display: block;
  font-size: var(--wu-fs-xs);
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
}

/* The current slide: a paper frame, lifted, with the accent along its top. */
.wu-film-frame.is-active {
  border-color: #fff;
  background: #fff;
  color: var(--wu-heading);
  transform: translateY(-6px);
}
.wu-film-frame.is-active .wu-film-text span { color: var(--wu-text-muted); }
.wu-film-frame.is-active::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  background: var(--wu-primary);
}

@media (min-width: 992px) {
  /* The strip takes height from the photograph, so the slide grows to give it
     back. The top clears the utility rail and the header - the stacked
     archetype on this page is nearly twice the usual bar - and the copy is
     centred in what is left above the strip... */
  .wu-hero-has-film .wu-carousel-slide {
    min-height: clamp(600px, 90vh, 860px);
    padding-top: calc(var(--wu-utility-height) + var(--wu-header-height) + var(--wu-space-7));
    padding-bottom: calc(var(--wu-space-8) + var(--wu-search-overlap) + var(--wu-film-h) + var(--wu-space-5));
  }
  /* ...and so are the arrows. */
  .wu-hero-has-film .wu-slider-arrow {
    top: calc(50% - (var(--wu-search-overlap) + var(--wu-film-h)) / 2);
  }
}

@media (max-width: 991.98px) {
  /* Under the photograph, as a row you swipe: five frames do not fit across
     a phone, and the arrows are already hidden at this width. */
  .wu-film { position: static; padding-block: var(--wu-space-4); }
  .wu-film .wu-container { overflow-x: auto; scrollbar-width: none; }
  .wu-film-list { grid-auto-columns: minmax(210px, 1fr); }
  .wu-film-frame.is-active { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wu-film-frame { transition: none; }
  .wu-film-frame.is-active { transform: none; }
}

/* ==========================================================================
   SPLIT EDITORIAL HERO (index-single-image.html)

   One photograph, but not behind the copy. The page is cut in two: an ink
   column with the headline and the search, and the image filling the rest of
   the width up to the top of the viewport. Nothing floats - the search is
   part of the column, so the page has no overlap band to reserve.
   ========================================================================== */
.wu-hero-split {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(660px, 96vh, 920px);
  /* The top clears the transparent header and the utility rail above it. */
  padding-block: calc(var(--wu-utility-height) + var(--wu-header-height) + var(--wu-space-6)) var(--wu-space-8);
  background: var(--wu-ink);
}

.wu-hero-split-media {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: -1;
  width: 54%;
  margin: 0;
  background: var(--wu-ink-deep);
}
.wu-hero-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A scrim along the top only, for the header links that cross the photo. */
.wu-hero-split-media::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  background: linear-gradient(rgba(9, 14, 22, .6), rgba(9, 14, 22, 0));
}

/* The copy sits in the normal page container, so its left edge matches every
   other section. Its width stops short of the photograph: 46vw is where the
   ink ends, less the container's own offset and a gutter. */
.wu-hero-split-copy {
  max-width: min(36rem, calc(46vw - max(var(--wu-space-4), (100vw - var(--wu-container-max)) / 2 + var(--wu-space-4)) - var(--wu-space-7)));
}

/* .wu-hero-split-text is an ink scope (style.css, "Ink scopes"), so the accent
   and service tokens inside it are the ones that pass on ink. The search is
   deliberately outside it: it paints its own white card. */
.wu-hero-split-kicker {
  margin: 0 0 var(--wu-space-4);
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-semibold);
  letter-spacing: var(--wu-tracking-label);
  text-transform: uppercase;
  color: var(--wu-accent-text);
}
.wu-hero-split-text h1 {
  margin: 0;
  font-family: var(--wu-font-display);
  font-size: var(--wu-fs-display-l);
  font-weight: var(--wu-fw-normal);
  line-height: 1.02;
  letter-spacing: var(--wu-tracking-display);
  color: var(--wu-on-ink-strong);
}
.wu-hero-split-lead {
  max-width: 44ch;
  margin: var(--wu-space-5) 0 var(--wu-space-6);
  font-size: var(--wu-fs-lg);
  color: var(--wu-on-ink);
}

/* The widget is part of the column, not floating over a picture, so it loses
   the lift; the tabs tighten so all four fit the narrower column. */
.wu-hero-split-search .wu-search { border: 0; box-shadow: none; }
.wu-hero-split-search .wu-search-tab { padding: .75rem .95rem; }

@media (max-width: 991.98px) {
  .wu-hero-split {
    display: block;
    min-height: 0;
    padding-block: 0 var(--wu-space-7);
  }
  .wu-hero-split-media {
    position: relative;
    inset: auto;
    z-index: auto;
    width: auto;
    height: min(62vh, 520px);
  }
  .wu-hero-split-copy {
    max-width: none;
    padding-top: var(--wu-space-6);
  }
}
