/**
 * Homepage discovery enhancements (Wave A/B vs travel-marketplace peers).
 * ASC brand only (navy/orange). No lime. No blocking modals. No pulse spam.
 */

/* —— Seasonal strip —— */
body[data-page="home"] .season-strip {
  position: relative;
  z-index: 40;
  background: linear-gradient(90deg, #0b1b2e 0%, #132a44 55%, #1a334f 100%);
  color: #e8eef4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-page="home"] .season-strip[hidden] {
  display: none;
}
body[data-page="home"] .season-strip__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 8px;
  min-height: 40px;
}
body[data-page="home"] .season-strip__text {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}
body[data-page="home"] .season-strip__label {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 101, 40, 0.18);
  color: #ffb48a;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
body[data-page="home"] .season-strip__link {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 101, 40, 0.7);
}
body[data-page="home"] .season-strip__link:hover {
  color: #ffb48a;
}
body[data-page="home"] .season-strip__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}
body[data-page="home"] .season-strip__close:hover {
  background: rgba(255, 255, 255, 0.16);
}
body[data-page="home"] .season-strip__close:focus-visible {
  outline: 2px solid #ff6528;
  outline-offset: 2px;
}

/* —— Kinetic hero route chip —— */
body[data-page="home"] .hero__spotlight .hero__route-chip {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
body[data-page="home"] .hero__route-chip-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition:
    opacity 0.45s var(--motion-ease-media, cubic-bezier(0.4, 0, 0.2, 1)),
    transform 0.55s var(--motion-ease-media, cubic-bezier(0.4, 0, 0.2, 1));
}
body[data-page="home"] .hero__route-chip-body {
  min-width: 0;
  flex: 1;
}
body[data-page="home"] .hero__route-chip-meta {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: #d7e0e8;
  line-height: 1.3;
}
body[data-page="home"] .hero__spotlight.is-route-swap .hero__route-chip-img {
  opacity: 0.35;
  transform: scale(1.06);
}
body[data-page="home"] .hero__spotlight.is-route-swap .hero__spotlight-title,
body[data-page="home"] .hero__spotlight.is-route-swap .hero__route-chip-meta {
  opacity: 0.45;
}
body[data-page="home"] .hero__spotlight .hero__spotlight-title,
body[data-page="home"] .hero__spotlight .hero__route-chip-meta {
  transition: opacity 0.35s ease;
}

/* —— Route search typeahead —— */
body[data-page="home"] .route-search {
  position: relative;
  margin: 12px 0 14px;
  z-index: 3;
}
body[data-page="home"] .route-search__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
body[data-page="home"] .route-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 27, 46, 0.08);
  box-shadow: 0 8px 24px -16px rgba(11, 27, 46, 0.35);
}
body[data-page="home"] .route-search__ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #ff6528;
}
body[data-page="home"] .route-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--navy, #0b1b2e);
  outline: none;
}
body[data-page="home"] .route-search__clear {
  border: 0;
  background: transparent;
  color: #ff6528;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
}
body[data-page="home"] .route-search__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11, 27, 46, 0.1);
  box-shadow: 0 16px 36px -18px rgba(11, 27, 46, 0.35);
  z-index: 5;
}
body[data-page="home"] .route-search__list[hidden] {
  display: none;
}
body[data-page="home"] .route-search__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--navy, #0b1b2e);
  font: inherit;
}
body[data-page="home"] .route-search__option:hover,
body[data-page="home"] .route-search__option.is-active,
body[data-page="home"] .route-search__option:focus-visible {
  background: rgba(255, 101, 40, 0.08);
  outline: none;
}
body[data-page="home"] .route-search__option img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
body[data-page="home"] .route-search__option strong {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25;
}
body[data-page="home"] .route-search__option small {
  display: block;
  font-size: 0.75rem;
  color: #5b6775;
  margin-top: 2px;
}
body[data-page="home"] .route-search__empty {
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: #5b6775;
}

/* —— Discovery rail (1 selective rail) —— */
body[data-page="home"] .discover-rail {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  background: #f4f7fa;
  border-block: 1px solid rgba(11, 27, 46, 0.06);
}
body[data-page="home"] .discover-rail .sec-head {
  margin-bottom: 14px;
}
body[data-page="home"] .discover-rail__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-block: 4px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body[data-page="home"] .discover-rail__track::-webkit-scrollbar {
  display: none;
}
body[data-page="home"] .discover-rail__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}
body[data-page="home"] .discover-rail__nav[hidden] {
  display: none;
}
body[data-page="home"] .discover-rail__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-2, #d9dee5);
  border-radius: 50%;
  background: var(--white, #fff);
  color: var(--navy, #0b1b2e);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s, opacity 0.2s;
}
body[data-page="home"] .discover-rail__arrow:hover:not(:disabled) {
  border-color: var(--navy, #0b1b2e);
  background: var(--sand, #f4f1ea);
  transform: translateY(-1px);
}
body[data-page="home"] .discover-rail__arrow:disabled,
body[data-page="home"] .discover-rail__arrow[aria-disabled="true"] {
  opacity: 0.38;
  cursor: default;
  transform: none;
}
body[data-page="home"] .discover-rail__arrow:focus-visible {
  outline: 2px solid var(--brand, #ff6528);
  outline-offset: 2px;
}
body[data-page="home"] .discover-rail__count {
  margin: 0;
  font-size: var(--fs-sm, 0.875rem);
  color: var(--ink-3, #7a8694);
  font-variant-numeric: tabular-nums;
  font-style: italic;
  white-space: nowrap;
}
body[data-page="home"] .discover-rail__card {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 27, 46, 0.08);
  box-shadow: 0 10px 28px -18px rgba(11, 27, 46, 0.28);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}
body[data-page="home"] .discover-rail__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d7e0e8;
}
body[data-page="home"] .discover-rail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--motion-ease-media, cubic-bezier(0.4, 0, 0.2, 1));
}
body[data-page="home"] .discover-rail__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(11, 27, 46, 0.45));
  pointer-events: none;
}
body[data-page="home"] .discover-rail__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--navy, #0b1b2e);
}
body[data-page="home"] .discover-rail__body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
body[data-page="home"] .discover-rail__name {
  margin: 0;
  font-family: var(--f-head);
  font-size: 0.9875rem;
  font-weight: 700;
  color: var(--navy, #0b1b2e);
  line-height: 1.25;
}
body[data-page="home"] .discover-rail__meta {
  margin: 0;
  font-size: 0.75rem;
  color: #5b6775;
}
body[data-page="home"] .discover-rail__price {
  margin: 8px 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy, #0b1b2e);
  font-variant-numeric: tabular-nums;
}
body[data-page="home"] .discover-rail__price span {
  font-weight: 500;
  color: #5b6775;
  font-size: 0.75rem;
}
@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .discover-rail__card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 101, 40, 0.28);
    box-shadow: 0 18px 36px -18px rgba(11, 27, 46, 0.32);
  }
  body[data-page="home"] .discover-rail__card:hover .discover-rail__media img {
    transform: scale(1.05);
  }
}

/* —— Compact review marquee —— */
body[data-page="home"] .review-marquee {
  margin-top: clamp(18px, 3vw, 28px);
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 27, 46, 0.08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
body[data-page="home"] .review-marquee__track {
  display: flex;
  width: max-content;
  animation: review-marquee-x 42s linear infinite;
}
body[data-page="home"] .review-marquee:hover .review-marquee__track {
  animation-play-state: paused;
}
body[data-page="home"] .review-marquee__set {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  flex: 0 0 auto;
}
body[data-page="home"] .review-marquee__item {
  flex: 0 0 auto;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #faf8f4 100%);
  border: 1px solid rgba(11, 27, 46, 0.07);
  box-shadow: 0 10px 22px -14px rgba(11, 27, 46, 0.28);
}
body[data-page="home"] .review-marquee__item strong {
  display: block;
  font-size: 0.75rem;
  color: var(--navy, #0b1b2e);
  margin-bottom: 4px;
}
body[data-page="home"] .review-marquee__item span {
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.4;
}
@keyframes review-marquee-x {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-asc-motion="full"]) body[data-page="home"] .review-marquee__track {
    animation: none !important;
    width: 100%;
    overflow-x: auto;
  }
  html:not([data-asc-motion="full"]) body[data-page="home"] .review-marquee__set[aria-hidden="true"] {
    display: none;
  }
  html:not([data-asc-motion="full"]) body[data-page="home"] .hero__spotlight.is-route-swap .hero__route-chip-img,
  html:not([data-asc-motion="full"]) body[data-page="home"] .discover-rail__card:hover {
    transform: none !important;
  }
}

@media (max-width: 639px) {
  body[data-page="home"] .season-strip__inner {
    padding-block: 10px;
  }
  body[data-page="home"] .season-strip__text {
    font-size: 0.75rem;
  }
}
