@import url("../../packages/shared/styles.css");
@import url("../../packages/shared/premium.css");
@import url("./styles.css");
@import url("./mandate-fixes.css");
@import url("./public-rework.css");
@import url("../../packages/shared/design-system.css");
@import url("./visual-polish.css");
@import url("./multipage.css");
@import url("./innovation.css");
@import url("./website-refinement.css");

.public-topbar{position:relative;z-index:20;background:#fff;border-bottom:1px solid #d8e7ef;box-shadow:0 8px 24px rgba(7,37,56,.08)}
.public-topbar .public-nav{background:#fff;border:1px solid #e2edf2;border-radius:999px;padding:8px 14px;gap:22px}
.public-topbar .public-nav a{font-size:.76rem;font-weight:800;color:#31536a}
.public-topbar__actions{gap:8px}
.public-account-link,.public-passenger-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;box-sizing:border-box;border-radius:var(--et-radius-control);font-size:.75rem;font-weight:900;padding:0 14px}
.public-account-link{border:1px solid #b9d5e3;background:#fff;color:#0b4160}
.public-passenger-link{background:#078fd0;color:#fff}
.public-hero{position:relative;isolation:isolate;overflow:hidden;min-height:540px;margin-top:22px;border-radius:26px;background:linear-gradient(100deg,#072c45 0%,#0b5270 58%,#073149 100%);box-shadow:0 24px 56px rgba(4,34,52,.2)}
.public-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,27,43,.93) 0%,rgba(4,27,43,.68) 38%,rgba(4,27,43,.08) 75%),url('/assets/media/Autobus.png') right 8% center/60% auto no-repeat;z-index:-1;opacity:1}
.public-hero__copy{padding:74px 0 60px 66px;max-width:650px;color:#fff}
.public-hero__eyebrow{color:#d9f7ff;border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.08)}
.public-hero h1{font-size:clamp(3.2rem,5vw,5.8rem);line-height:.9;letter-spacing:-.075em;color:#fff;max-width:700px}
.public-hero h1 span{color:#66d3f4}
.public-hero__copy>p{color:#d8e9f2;font-size:1.02rem}
.public-hero__actions .public-secondary{border-color:rgba(255,255,255,.5);color:#fff;background:rgba(255,255,255,.08)}
.public-trust-strip{color:#e6f6fa}
.public-hero__stats article{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.12);color:#fff}
.public-hero__stats{display:none}
.public-hero__visual{display:none}
.public-booking{margin-top:-112px;position:relative;z-index:4}
.public-booking__layout>header{display:none}
.public-booking-card{background:rgba(255,255,255,.97);border:1px solid #c3dce8;border-radius:18px;box-shadow:0 22px 45px rgba(4,34,52,.22)}
@media(max-width:900px){.public-topbar .public-nav{display:none}.public-hero{min-height:620px}.public-hero::before{background:linear-gradient(180deg,rgba(4,27,43,.85) 0%,rgba(4,27,43,.6) 48%,rgba(4,27,43,.94) 100%),url('/assets/media/Autobus.png') center bottom/92% auto no-repeat}.public-hero__copy{padding:52px 28px}.public-hero h1{font-size:clamp(3rem,12vw,5rem)}}
@media(max-width:900px){.public-booking{margin-top:-48px}.public-booking__layout>header{display:block}.public-booking-card{border-radius:16px}}
.public-footer__legal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 0;border-top:1px solid rgba(255,255,255,.14)}
.public-footer__legal details{border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:12px 14px;color:inherit;background:rgba(255,255,255,.04)}
.public-footer__legal summary{cursor:pointer;font-weight:800}
.public-footer__legal p{margin:10px 0 0;max-width:42ch;line-height:1.55;opacity:.8;font-size:.82rem}
@media(max-width:720px){.public-footer__legal{grid-template-columns:1fr}}

/* Homepage booking alignment: one stable desktop row, responsive stacking below. */
.public-booking .public-booking-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.45fr) 48px minmax(180px, 1.45fr) minmax(132px, .9fr) minmax(98px, .6fr) minmax(190px, 1.18fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 16px;
}

.public-booking .public-booking-card__route,
.public-booking .public-booking-card__details {
  display: contents;
}

.public-booking .public-field {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 68px;
  min-height: 68px;
  padding: 11px 14px;
  border-radius: 16px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.public-booking .public-field select,
.public-booking .public-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 22px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking .public-swap {
  position: static;
  justify-self: center;
  align-self: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  border-radius: 50%;
}

.public-booking .public-search-button {
  box-sizing: border-box;
  width: 100%;
  height: 68px;
  min-height: 68px;
  grid-column: auto;
  border-radius: 16px;
  white-space: nowrap;
}

.public-booking .public-search-button [data-action-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .public-booking .public-booking-card {
    grid-template-columns: minmax(140px, 1.3fr) 44px minmax(140px, 1.3fr) minmax(112px, .9fr) minmax(88px, .6fr) minmax(166px, 1.1fr);
    gap: 8px;
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .public-booking .public-booking-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .public-booking .public-booking-card__route,
  .public-booking .public-booking-card__details {
    display: grid;
    gap: 10px;
  }

  .public-booking .public-booking-card__route {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    align-items: center;
  }

  .public-booking .public-booking-card__details {
    grid-template-columns: minmax(0, 1fr) minmax(110px, .7fr) minmax(180px, 1.1fr);
    align-items: center;
  }
}

@media (min-width: 1121px) and (max-width: 1349px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(136px, 1.12fr)
      40px
      minmax(168px, 1.2fr)
      minmax(110px, .86fr)
      minmax(134px, .86fr)
      minmax(142px, 1fr);
  }
}

/* The desktop booking row must consume the card width exactly.  Zero-based
   min tracks prevent intrinsic label/button widths from pushing the action
   four pixels outside the card at large viewports. */
@media (min-width: 1350px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(0, 1.12fr)
      40px
      minmax(0, 1.2fr)
      minmax(0, .86fr)
      minmax(0, .86fr)
      minmax(0, 1fr);
  }

  .public-booking .booking-field,
  .public-booking .public-swap,
  .public-booking .public-search-button,
  .site-page--trips .trip-search-card .booking-field,
  .site-page--trips .trip-search-card .public-swap,
  .site-page--trips .trip-search-card .public-search-button {
    min-width: 0;
  }
}

/* Keep the dropdown surface connected to the pill trigger. The nav row has
   a slightly taller hit area than its visible button, so this closes the
   pointer gap without changing the header's alignment. */
body:has(.public-topbar) .public-topbar .site-menu__panel {
  top: calc(100% - 5px);
}

/* Headings across the public Website use the same confident display weight;
   page-specific light rules must not make one route feel like a different
   product. Dark hero surfaces keep their white contrast. */
body:has(.public-topbar) .site-page :is(h1, h2, h3, h4),
body:has(.public-topbar) .public-hero :is(h1, h2, h3, h4) {
  font-weight: 800;
}

body:has(.public-topbar) .site-page .routes-hero__copy :is(h1, h2, h3, p),
body:has(.public-topbar) .site-page .packages-hero__copy :is(h1, h2, h3, p) {
  color: #fff;
}

/* Hero art and copy are dark, but the information panels sitting beside them
   stay light. Keep their own text contract explicit so a hero rule can never
   wash out a card heading or status message. */
body:has(.public-topbar) .site-page .routes-network-card :is(h1, h2, h3, p, strong, span),
body:has(.public-topbar) .site-page .package-journey-visual :is(h1, h2, h3, p, strong, span) {
  color: #08283b;
}

body:has(.public-topbar) .site-page .routes-network-card .routes-network-card__eyebrow,
body:has(.public-topbar) .site-page .routes-network-card .routes-network-card__footer,
body:has(.public-topbar) .site-page .package-journey-visual .package-journey-visual__status {
  color: #159ac0;
}

/*
 * Public website visual contract v2.
 *
 * The public pages previously mixed several generations of card and
 * typography rules.  Keep the interaction selectors above intact, but give
 * every public surface one final, intentionally small visual layer so the
 * pages share the same rhythm, weight and contrast at every route.
 */
body:has(.public-topbar) {
  --website-ink: #08283b;
  --website-muted: #587184;
  --website-line: #cfe2eb;
  --website-surface: #ffffff;
  --website-tint: #eef7fa;
  --website-brand: #159ac0;
  --website-brand-strong: #087fa9;
  background: #f4f9fb;
  color: var(--website-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
}

body:has(.public-topbar) :where(h1, h2, h3, h4, strong, button, .button) {
  font-family: inherit;
}

body:has(.public-topbar) :where(h1, h2, h3, h4) {
  color: var(--website-ink);
  font-weight: 800;
  text-wrap: balance;
}

body:has(.public-topbar) :where(p, small) {
  color: var(--website-muted);
}

body:has(.public-topbar) .shell {
  width: min(1280px, calc(100% - 48px));
}

body:has(.public-topbar) .public-topbar {
  min-height: 76px;
  padding-block: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 26px rgba(8, 40, 59, .07);
}

body:has(.public-topbar) .public-topbar .encore-lockup__logo {
  width: clamp(154px, 16vw, 220px);
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

body:has(.public-topbar) .public-nav,
body:has(.public-topbar) .public-topbar__actions {
  flex-shrink: 0;
}

body:has(.public-topbar) .public-nav a,
body:has(.public-topbar) .site-menu__button,
body:has(.public-topbar) .public-account-link {
  font-size: .78rem;
  font-weight: 750;
}

body:has(.public-topbar) .button,
body:has(.public-topbar) .public-search-button,
body:has(.public-topbar) .website-select__trigger {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body:has(.public-topbar) .button:hover,
body:has(.public-topbar) .public-search-button:hover {
  transform: translateY(-1px);
}

/* Trips is the reference booking surface: stronger hierarchy, one clear
   hero, and an image that gives the page an obvious travel purpose. */
body:has(.public-topbar) .site-page--trips .trips-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 408px;
  background: linear-gradient(105deg, #062a42 0%, #0d5875 58%, #0b3b55 100%);
}

body:has(.public-topbar) .site-page--trips .trips-hero::after {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 42, 66, .85), rgba(6, 42, 66, .08) 62%),
    url("/assets/media/Autobus.png") 82% 52% / min(650px, 54vw) auto no-repeat;
  opacity: .9;
}

body:has(.public-topbar) .site-page--trips .trips-hero__inner {
  min-height: 408px;
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
}

body:has(.public-topbar) .site-page--trips .trips-hero h1 {
  max-width: 690px;
  color: #fff;
  font-size: clamp(3.2rem, 6vw, 6.8rem);
  font-weight: 850;
  line-height: .9;
}

body:has(.public-topbar) .site-page--trips .trips-hero p {
  max-width: 560px;
  color: #d5edf5;
  font-size: 1.04rem;
}

body:has(.public-topbar) .site-page--trips .trips-hero__signal {
  border-color: rgba(157, 226, 243, .4);
  border-radius: 20px;
  background: rgba(7, 40, 59, .62);
  box-shadow: 0 18px 42px rgba(2, 23, 36, .18);
  backdrop-filter: blur(12px);
}

body:has(.public-topbar) .site-page--trips .trip-search-section {
  padding-block: clamp(72px, 8vw, 112px);
  background: linear-gradient(180deg, #eef7fa 0%, #e8f3f7 100%);
}

body:has(.public-topbar) .site-page--trips .trip-search-layout {
  grid-template-columns: minmax(270px, .5fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

body:has(.public-topbar) .site-page--trips .trip-search-intro h2 {
  max-width: 440px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  line-height: .92;
}

body:has(.public-topbar) .site-page--trips .trip-search-intro > p {
  max-width: 370px;
  font-size: 1rem;
}

body:has(.public-topbar) .site-page--trips .trip-search-card {
  padding: clamp(22px, 2.8vw, 32px);
  border: 1px solid rgba(159, 205, 219, .72);
  border-radius: 28px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 58px rgba(8, 40, 59, .13);
}

body:has(.public-topbar) .site-page--trips .trip-search-card__header strong {
  font-size: 1.32rem;
  font-weight: 800;
}

/* The field label is deliberately larger than the old .68rem rule.  It is
   still compact, but no longer disappears when the font is changed or when
   the control is rendered at the compact desktop breakpoint. */
body:has(.public-topbar) .public-booking .booking-label,
body:has(.public-topbar) .site-page--trips .trip-search-card .booking-label {
  min-width: 0;
  max-width: 100%;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .05em;
}

body:has(.public-topbar) .public-booking .booking-label > span:last-child,
body:has(.public-topbar) .site-page--trips .trip-search-card .booking-label > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.public-topbar) .public-booking .website-select__value,
body:has(.public-topbar) .site-page--trips .trip-search-card .website-select__value,
body:has(.public-topbar) .public-booking .public-field input,
body:has(.public-topbar) .site-page--trips .trip-search-card .public-field input {
  font-size: .94rem;
  font-weight: 750;
  letter-spacing: -.01em;
}

body:has(.public-topbar) .site-page--trips .trip-steps-section {
  background: #f8fbfc;
}

body:has(.public-topbar) .site-page--trips .trip-steps-section h2 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 800;
}

body:has(.public-topbar) .trip-steps-grid {
  gap: 16px;
  padding: 12px;
  border-color: #d6e7ed;
  border-radius: 28px;
  background: #edf6f9;
}

body:has(.public-topbar) .trip-steps-grid article {
  min-height: 350px;
  gap: 16px;
  padding: 22px;
  border-color: #d4e6ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 40, 59, .05);
}

body:has(.public-topbar) .trip-step-card__art {
  justify-self: stretch;
  width: 100%;
  height: 112px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #d5eaf1;
  border-radius: 16px;
  mix-blend-mode: normal;
}

body:has(.public-topbar) .trip-steps-grid article strong {
  font-weight: 800;
}

/* Shared surface rhythm for every multipage screen. */
body:has(.public-topbar) .site-page__section,
body:has(.public-topbar) .about-principles,
body:has(.public-topbar) .about-context,
body:has(.public-topbar) .contact-paths,
body:has(.public-topbar) .contact-status {
  position: relative;
}

body:has(.public-topbar) .site-card,
body:has(.public-topbar) .site-form-shell,
body:has(.public-topbar) .routes-empty,
body:has(.public-topbar) .routes-terminal-panel {
  border-radius: 20px;
  border-color: var(--website-line);
  box-shadow: 0 14px 34px rgba(8, 40, 59, .06);
}

body:has(.public-topbar) .site-card h3,
body:has(.public-topbar) .routes-terminal-panel strong,
body:has(.public-topbar) .site-form-shell strong {
  font-weight: 800;
}

@media (max-width: 900px) {
  body:has(.public-topbar) .shell {
    width: min(100% - 32px, 1240px);
  }

  body:has(.public-topbar) .site-page--trips .trips-hero,
  body:has(.public-topbar) .site-page--trips .trips-hero__inner {
    min-height: 470px;
  }

  body:has(.public-topbar) .site-page--trips .trips-hero::after {
    inset: 36% 0 0;
    background:
      linear-gradient(180deg, rgba(6, 42, 66, .03), rgba(6, 42, 66, .92)),
      url("/assets/media/Autobus.png") center bottom / min(570px, 92vw) auto no-repeat;
  }

  body:has(.public-topbar) .site-page--trips .trips-hero__inner {
    grid-template-columns: 1fr;
    align-content: start;
    padding-block: 58px 34px;
  }

  body:has(.public-topbar) .site-page--trips .trips-hero__signal {
    max-width: 460px;
  }
}

@media (max-width: 620px) {
  body:has(.public-topbar) .shell {
    width: min(100% - 24px, 520px);
  }

  body:has(.public-topbar) .public-topbar {
    min-height: 68px;
    padding-block: 8px;
  }

  body:has(.public-topbar) .public-topbar .encore-lockup__logo {
    width: 154px;
    max-height: 34px;
  }

  body:has(.public-topbar) .site-page--trips .trips-hero,
  body:has(.public-topbar) .site-page--trips .trips-hero__inner {
    min-height: 450px;
  }

  body:has(.public-topbar) .site-page--trips .trips-hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.3rem);
  }

  body:has(.public-topbar) .site-page--trips .trip-search-card {
    padding: 18px;
    border-radius: 22px;
  }

  body:has(.public-topbar) .trip-steps-grid article {
    min-height: 0;
  }

  body:has(.public-topbar) .trip-step-card__art {
    height: 104px;
  }
}

@media (max-width: 620px) {
  .public-booking .public-booking-card__route,
  .public-booking .public-booking-card__details {
    grid-template-columns: 1fr;
  }

  .public-booking .public-swap {
    justify-self: center;
  }
}

/* Final visual contract: this block intentionally lives last so the public
   site has one predictable layer after the legacy page-specific styles. */
body:has(.public-topbar) {
  background: #f4f9fb;
  color: #08283b;
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
}

body:has(.public-topbar) :where(h1, h2, h3, h4) {
  color: #08283b;
  font-weight: 800;
  text-wrap: balance;
}

body:has(.public-topbar) .shell {
  width: min(1280px, calc(100% - 48px));
}

body:has(.public-topbar) .site-page--trips .trips-hero {
  min-height: 408px;
  background: linear-gradient(105deg, #062a42 0%, #0d5875 58%, #0b3b55 100%);
}

body:has(.public-topbar) .site-page--trips .trips-hero h1 {
  color: #fff;
  font-weight: 850;
  line-height: .9;
}

body:has(.public-topbar) .site-page--trips .trip-search-section {
  background: linear-gradient(180deg, #eef7fa 0%, #e8f3f7 100%);
}

body:has(.public-topbar) .site-page--trips .trip-search-card {
  border: 1px solid rgba(159, 205, 219, .72);
  border-radius: 28px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 58px rgba(8, 40, 59, .13);
}

body:has(.public-topbar) .public-booking .booking-label,
body:has(.public-topbar) .site-page--trips .trip-search-card .booking-label {
  min-width: 0;
  max-width: 100%;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .05em;
}

body:has(.public-topbar) .public-booking .booking-label > span:last-child,
body:has(.public-topbar) .site-page--trips .trip-search-card .booking-label > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.public-topbar) .public-booking .website-select__value,
body:has(.public-topbar) .site-page--trips .trip-search-card .website-select__value,
body:has(.public-topbar) .public-booking .public-field input,
body:has(.public-topbar) .site-page--trips .trip-search-card .public-field input {
  font-size: .94rem;
  font-weight: 750;
}

body:has(.public-topbar) .site-page--trips .trip-steps-grid {
  gap: 16px;
  padding: 12px;
  border-radius: 28px;
  background: #edf6f9;
}

body:has(.public-topbar) .site-page--trips .trip-steps-grid article {
  min-height: 350px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 40, 59, .05);
}

body:has(.public-topbar) .trip-step-card__art {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
  mix-blend-mode: normal;
}

@media (min-width: 1121px) and (max-width: 1349px) {
  body:has(.public-topbar) .public-booking .public-booking-card,
  body:has(.public-topbar) .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns: minmax(136px, 1.12fr) 40px minmax(168px, 1.2fr) minmax(110px, .86fr) minmax(134px, .86fr) minmax(142px, 1fr);
  }
}

@media (max-width: 900px) {
  body:has(.public-topbar) .shell {
    width: min(100% - 32px, 1240px);
  }

  body:has(.public-topbar) .site-page--trips .trips-hero,
  body:has(.public-topbar) .site-page--trips .trips-hero__inner {
    min-height: 470px;
  }

  body:has(.public-topbar) .site-page--trips .trip-steps-grid article {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  body:has(.public-topbar) .shell {
    width: min(100% - 24px, 520px);
  }

  body:has(.public-topbar) .site-page--trips .trips-hero,
  body:has(.public-topbar) .site-page--trips .trips-hero__inner {
    min-height: 450px;
  }

  body:has(.public-topbar) .site-page--live .site-page__hero {
    width: 100%;
    margin-inline: 0;
  }

  body:has(.public-topbar) .public-booking .public-field,
  body:has(.public-topbar) .public-booking .public-search-button,
  body:has(.public-topbar) .site-page--trips .trip-search-card .booking-field,
  body:has(.public-topbar) .site-page--trips .trip-search-card .public-search-button {
    min-height: 64px;
    height: 64px;
  }
}

/* Keep enhanced select menus anchored to the viewport.
   A transformed booking card creates a containing block for position:fixed
   menus, which makes the dropdown jump away from its trigger or disappear
   while the pointer moves toward an option. */
.public-booking-card,
.site-page--trips .trip-search-card .public-booking-card {
  will-change: auto;
}

/* Shared public select: the native select remains the real form control while
   this accessible surface gives every Website combo the same visual language. */
.website-select {
  position: relative;
  display: block;
  min-width: 0;
}

.website-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.website-select__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #bfd5df;
  border-radius: 12px;
  background: #fff;
  color: #16445d;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.website-select__trigger:hover,
.website-select.is-open .website-select__trigger {
  border-color: #25a6d5;
  background: #fbfeff;
  box-shadow: 0 0 0 4px rgba(37, 166, 213, .12);
}

.website-select__trigger:focus-visible {
  outline: 3px solid rgba(45, 169, 223, .35);
  outline-offset: 2px;
}

.website-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-select__chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.website-select.is-open .website-select__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.website-select__trigger:disabled,
.website-select.is-disabled .website-select__trigger {
  border-color: #d4e1e7;
  background: #f3f7f9;
  color: #8297a2;
  cursor: not-allowed;
  box-shadow: none;
}

.website-select__menu {
  position: fixed;
  z-index: 1200;
  display: grid;
  gap: 4px;
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #c5dce5;
  border-radius: 15px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 44px rgba(8, 48, 70, .2), 0 3px 10px rgba(8, 48, 70, .08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(.99);
  transform-origin: top center;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.website-select__menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.website-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #234b60;
  font: inherit;
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.website-select__option:hover,
.website-select__option:focus-visible {
  border-color: #cae6ef;
  background: #eaf7fb;
  color: #087ba7;
  outline: none;
}

.website-select__option[aria-selected="true"] {
  border-color: #bde1ec;
  background: #e6f5fa;
  color: #08749e;
}

.website-select__option[aria-selected="true"] b {
  color: #087ba7;
  font-size: .85rem;
}

.website-select__option:disabled {
  color: #9aabb4;
  cursor: not-allowed;
}

.public-field .website-select__trigger {
  box-sizing: border-box;
  min-height: 36px;
  height: 36px;
  padding: 0 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pub-ink);
  font-size: .9rem;
  font-weight: 900;
  box-shadow: none;
}

.public-field .website-select__trigger:hover,
.public-field .website-select.is-open .website-select__trigger {
  background: transparent;
  box-shadow: none;
}

.locale-switcher .website-select {
  width: 68px;
}

.locale-switcher .website-select__trigger {
  min-height: 40px;
  padding-inline: 10px;
  border-radius: var(--et-radius-control);
  font-size: .72rem;
  letter-spacing: .08em;
}

.public-map-card__bar .website-select {
  min-width: min(320px, 70%);
}

.public-map-card__bar .website-select__trigger {
  min-height: 46px;
  padding-inline: 12px;
  border-radius: var(--et-radius-control);
}

@media (max-width: 620px) {
  .website-select__menu {
    max-width: calc(100vw - 16px);
  }

  .locale-switcher .website-select {
    width: 72px;
  }

  .public-map-card__bar .website-select {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .website-select__trigger,
  .website-select__menu,
  .website-select__option {
    transition: none;
  }
}

/* Trip page booking form: keep the destination selector in the same measured
   rhythm as the homepage search without changing the booking behavior. */
.site-page--trips .trip-search-card .public-booking-card {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) 44px minmax(180px, 1.3fr) minmax(142px, .9fr) minmax(82px, .6fr) minmax(140px, .9fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
}

.site-page--trips .trip-search-card .public-booking-card > * {
  min-width: 0;
}

.site-page--trips .trip-search-card .public-booking-card__route,
.site-page--trips .trip-search-card .public-booking-card__details {
  display: contents;
}

.site-page--trips .trip-search-card .booking-field {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 68px;
  min-height: 68px;
  padding: 11px 14px;
  border-radius: 16px;
}

.site-page--trips .trip-search-card .booking-field select,
.site-page--trips .trip-search-card .booking-field input {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-page--trips .trip-search-card .public-field .website-select__value {
  font-size: .8rem;
  font-weight: 850;
}

.site-page--trips .trip-search-card input[type="date"] {
  font-size: .78rem;
  letter-spacing: -.025em;
}

.site-page--trips .trip-search-card .public-swap {
  width: 44px;
  height: 44px;
  justify-self: center;
}

.site-page--trips .trip-search-card .public-search-button {
  box-sizing: border-box;
  width: 100%;
  height: 68px;
  min-height: 68px;
  min-width: 0;
  padding-inline: 12px;
  grid-column: auto;
  border-radius: 16px;
  white-space: nowrap;
}

.site-page--trips .trip-search-card .public-search-button [data-action-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns: minmax(136px, 1.1fr) 42px minmax(160px, 1.3fr) minmax(128px, .85fr) minmax(80px, .6fr) minmax(140px, .9fr);
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .site-page--trips .trip-search-card .public-booking-card__route,
  .site-page--trips .trip-search-card .public-booking-card__details {
    display: grid;
    gap: 10px;
  }

  .site-page--trips .trip-search-card .public-booking-card__route {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    align-items: center;
  }

  .site-page--trips .trip-search-card .public-booking-card__details {
    grid-template-columns: minmax(0, 1fr) minmax(110px, .7fr) minmax(180px, 1.1fr);
    align-items: center;
  }

  .site-page--trips .trip-search-card .public-search-button {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .site-page--trips .trip-search-card .public-booking-card__route,
  .site-page--trips .trip-search-card .public-booking-card__details {
    grid-template-columns: 1fr;
  }

  .site-page--trips .trip-search-card .public-swap {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* Keep the premium surfaces compact: generous whitespace belongs around the
   module, not inside an overstretched form. */
.public-booking .public-booking-card {
  width: min(100%, 940px);
  margin-inline: auto;
}

.site-page--trips .trip-search-card {
  width: min(100%, 940px);
  justify-self: center;
}

.public-hero__copy h1 {
  max-width: 580px;
  text-wrap: balance;
}

.public-faq-list {
  width: 100%;
  max-width: 760px;
}

.public-faq-list p {
  max-width: 65ch;
}

.site-page--trips .trip-search-intro h2 {
  max-width: 390px;
  font-size: clamp(2.55rem, 4.2vw, 4.4rem);
  text-wrap: balance;
}

.website-select__menu {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(37, 166, 213, .28);
}

.website-select__value.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7893a0;
}

.website-select__value.is-loading::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 2px solid #c9dfe7;
  border-top-color: #159ac0;
  border-radius: 50%;
  animation: website-select-loading .72s linear infinite;
}

@keyframes website-select-loading {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .website-select__value.is-loading::before {
    animation: none;
  }
}

/* Shared control rhythm: compact enough for scanning, large enough for touch.
   Keep the same geometry across the public Website instead of letting each
   page invent a different button or field height. */
:root {
  --website-control-height: 52px;
  --website-control-radius: 14px;
  --website-action-radius: 12px;
}

.site-page .button,
.site-page a.button,
.public-hero__actions .button,
.parcel-feature .button,
.public-section .button {
  min-height: var(--website-control-height);
  border-radius: var(--website-action-radius);
}

.site-page .site-page__actions .button,
.site-page .routes-filter__controls .button {
  min-height: 48px;
}

/* Dense live-bus actions are intentionally smaller than page CTAs so the
   vehicle list stays scannable when several buses are visible. */
.site-page .public-network-buses [data-network-trip] {
  border-radius: 12px;
}

.routes-filter input,
.public-map-card__bar .website-select__trigger,
.live-map-toolbar .website-select__trigger {
  min-height: var(--website-control-height);
  border-radius: var(--website-control-radius);
}

.recent-searches button {
  min-height: 38px;
  padding-block: 0;
}

.route-shortcuts__group {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.route-shortcuts__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recent-searches .recent-searches__favorite-toggle[aria-pressed="true"] {
  border-color: #e6bd44;
  background: #fff8dc;
  color: #765500;
}

.recent-searches .route-shortcuts__remove,
.recent-searches .route-shortcuts__clear {
  min-height: 38px;
  border: 1px solid #d6e5eb;
  border-radius: 999px;
  background: #f8fcfd;
  color: #31536a;
  padding: 0 10px;
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  cursor: pointer;
}

.recent-searches .route-shortcuts__remove {
  width: 34px;
  padding: 0;
  font-size: 1.1rem;
}

.recent-searches .route-shortcuts__remove:hover,
.recent-searches .route-shortcuts__clear:hover {
  border-color: #e6bd44;
  color: #765500;
}

/* The visible calendar is a branded surface. The native date input remains in
   the form as the source of truth, but the browser-specific popup is replaced
   by this keyboard- and touch-friendly calendar. */
.website-date-picker {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 36px;
}

.website-date-picker__native {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  color: transparent !important;
  background: transparent !important;
}

.website-date-picker__trigger {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pub-ink, #102130);
  font: inherit;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.website-date-picker__trigger:hover,
.website-date-picker.is-open .website-date-picker__trigger {
  color: #087fa9;
}

.website-date-picker__trigger:focus-visible {
  outline: 3px solid rgba(45, 169, 223, .32);
  outline-offset: 3px;
}

.website-date-picker__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-date-picker__value.is-placeholder {
  color: #7c929e;
}

.website-date-picker__icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 4px;
}

.website-date-picker__icon::before,
.website-date-picker__icon::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}

.website-date-picker__icon::before { left: 3px; }
.website-date-picker__icon::after { right: 3px; }

.website-date-picker__popover {
  position: fixed;
  z-index: 1300;
  display: grid;
  gap: 12px;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid rgba(37, 166, 213, .3);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 54px rgba(8, 48, 70, .2), 0 4px 12px rgba(8, 48, 70, .08);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px) scale(.98);
  transform-origin: top center;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear;
}

.website-date-picker__popover[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.website-date-picker__header,
.website-date-picker__weekdays,
.website-date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.website-date-picker__header {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.website-date-picker__header strong {
  overflow: hidden;
  color: #08283b;
  font-size: .88rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
}

.website-date-picker__nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #c6e0e9;
  border-radius: 50%;
  background: #f5fbfd;
  color: #087fa9;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.website-date-picker__nav:hover,
.website-date-picker__nav:focus-visible {
  border-color: #159ac0;
  background: #eaf7fb;
  outline: none;
}

.website-date-picker__weekdays {
  color: #7a919d;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.website-date-picker__grid {
  gap: 4px;
}

.website-date-picker__empty,
.website-date-picker__day {
  aspect-ratio: 1;
  min-width: 0;
}

.website-date-picker__day {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #234b60;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}

.website-date-picker__day:hover,
.website-date-picker__day:focus-visible {
  border-color: #b8deea;
  background: #eaf7fb;
  color: #08749e;
  outline: none;
  transform: scale(1.06);
}

.website-date-picker__day.is-selected {
  border-color: #159ac0;
  background: #159ac0;
  color: #fff;
  box-shadow: 0 6px 12px rgba(21, 154, 192, .22);
}

.website-date-picker__day[aria-current="date"]:not(.is-selected) {
  border-color: #66c9df;
  color: #08749e;
}

.website-date-picker__day:disabled {
  opacity: .32;
  cursor: not-allowed;
  transform: none;
}

.website-date-picker.is-disabled .website-date-picker__trigger {
  color: #8297a2;
  cursor: not-allowed;
}

/* Compact planner geometry: route controls remain more generous than date
   and passenger controls, while every control shares the same baseline. */
.public-booking .public-booking-card {
  grid-template-columns: minmax(160px, 1.15fr) 40px minmax(190px, 1.35fr) minmax(118px, .9fr) minmax(78px, .55fr) minmax(180px, 1.05fr);
  gap: 9px;
  padding: 14px;
}

.public-booking .public-field,
.site-page--trips .trip-search-card .booking-field {
  height: 58px;
  min-height: 58px;
  border-radius: var(--website-control-radius);
}

.public-booking .public-search-button,
.site-page--trips .trip-search-card .public-search-button {
  height: 58px;
  min-height: 58px;
  border-radius: var(--website-action-radius);
}

.public-booking .public-field,
.site-page--trips .trip-search-card .booking-field {
  padding: 9px 12px;
}

.public-booking .public-field .website-select__value,
.site-page--trips .trip-search-card .public-field .website-select__value {
  font-size: .82rem;
  letter-spacing: -.01em;
}

.public-booking .public-field input[type="number"],
.site-page--trips .trip-search-card .public-field input[type="number"] {
  font-size: .92rem;
}

.public-booking .public-swap,
.site-page--trips .trip-search-card .public-swap {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

.public-booking .public-search-button,
.site-page--trips .trip-search-card .public-search-button {
  padding-inline: 12px;
}

/* Do not turn a translated action into an unexplained ellipsis. The action
   column is deliberately given enough room for English and Spanish labels. */
.public-booking .public-search-button [data-action-label],
.site-page--trips .trip-search-card .public-search-button [data-action-label] {
  flex: 0 0 auto;
  min-width: max-content;
  overflow: visible;
  text-overflow: clip;
}

.public-booking .public-field .website-select__value.is-loading,
.site-page--trips .trip-search-card .public-field .website-select__value.is-loading {
  overflow: visible;
  text-overflow: clip;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .public-booking .public-booking-card {
    grid-template-columns: minmax(140px, 1.15fr) 38px minmax(160px, 1.3fr) minmax(108px, .9fr) minmax(74px, .55fr) minmax(170px, 1fr);
    gap: 8px;
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .public-booking .public-booking-card__route,
  .public-booking .public-booking-card__details,
  .site-page--trips .trip-search-card .public-booking-card__route,
  .site-page--trips .trip-search-card .public-booking-card__details {
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .public-booking .public-booking-card__route,
  .public-booking .public-booking-card__details,
  .site-page--trips .trip-search-card .public-booking-card__route,
  .site-page--trips .trip-search-card .public-booking-card__details {
    grid-template-columns: 1fr;
  }

  .public-booking .public-swap,
  .site-page--trips .trip-search-card .public-swap {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .website-date-picker__popover,
  .website-date-picker__day {
    transition: none;
  }
}

/* Final booking-console geometry.
   Keep this block last: earlier iterations contain legacy layouts for the
   same form. The controls must fit the available column before they are
   allowed to wrap, otherwise the destination selector can overlap its peers. */
.public-booking .public-booking-card,
.site-page--trips .trip-search-card .public-booking-card {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.2fr)
    42px
    minmax(150px, 1.2fr)
    minmax(122px, .9fr)
    minmax(116px, .75fr)
    minmax(154px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}

.public-booking .public-booking-card__route,
.public-booking .public-booking-card__details,
.site-page--trips .trip-search-card .public-booking-card__route,
.site-page--trips .trip-search-card .public-booking-card__details {
  display: contents;
  min-width: 0;
}

.public-booking .public-field,
.site-page--trips .trip-search-card .public-field,
.site-page--trips .trip-search-card .booking-field {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 64px;
  min-height: 64px;
  padding: 8px 12px;
  overflow: visible;
  border-radius: 15px;
}

/* A/B was decorative and, as a grid item, could push the field label over
   the selector. The location icon and text already identify each endpoint. */
.site-page--trips .trip-search-card .booking-field__badge {
  display: none;
}

.public-booking .booking-label,
.site-page--trips .trip-search-card .booking-label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(.62rem, .68vw, .74rem);
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.public-booking .booking-label__icon,
.site-page--trips .trip-search-card .booking-label__icon {
  flex: 0 0 auto;
}

.public-booking .booking-label > span:last-child,
.site-page--trips .trip-search-card .booking-label > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking .public-field .website-select,
.site-page--trips .trip-search-card .public-field .website-select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.public-booking .public-field .website-select__trigger,
.site-page--trips .trip-search-card .public-field .website-select__trigger,
.public-booking .public-field input,
.site-page--trips .trip-search-card .public-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.public-booking .public-field input[type="date"],
.site-page--trips .trip-search-card .public-field input[type="date"] {
  min-width: 0;
  font-size: .78rem;
  letter-spacing: -.045em;
}

.public-booking .public-field .website-select__value,
.site-page--trips .trip-search-card .public-field .website-select__value {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Loading is a state inside the control, never a reason to resize it. */
.public-booking .public-field .website-select__value.is-loading,
.site-page--trips .trip-search-card .public-field .website-select__value.is-loading {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking .public-field .website-select__value.is-loading::before,
.site-page--trips .trip-search-card .public-field .website-select__value.is-loading::before {
  flex: 0 0 auto;
}

.public-booking .public-swap,
.site-page--trips .trip-search-card .public-swap {
  position: static;
  justify-self: center;
  align-self: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  border-radius: 50%;
}

.public-booking .public-search-button,
.site-page--trips .trip-search-card .public-search-button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 64px;
  min-height: 64px;
  padding-inline: 12px;
  white-space: nowrap;
}

.public-booking .public-search-button [data-action-label],
.site-page--trips .trip-search-card .public-search-button [data-action-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1120px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns: minmax(136px, 1.15fr) 40px minmax(136px, 1.15fr) minmax(114px, .82fr) minmax(108px, .72fr) minmax(146px, .95fr);
    gap: 7px;
    padding-inline: 12px;
  }
}

@media (min-width: 1121px) and (max-width: 1349px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(136px, 1.12fr)
      40px
      minmax(168px, 1.2fr)
      minmax(110px, .86fr)
      minmax(134px, .86fr)
      minmax(142px, 1fr);
  }
}

@media (max-width: 900px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .public-booking .public-booking-card__route,
  .public-booking .public-booking-card__details,
  .site-page--trips .trip-search-card .public-booking-card__route,
  .site-page--trips .trip-search-card .public-booking-card__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
  }

  .public-booking .public-booking-card__details,
  .site-page--trips .trip-search-card .public-booking-card__details {
    grid-template-columns: minmax(0, 1fr) minmax(112px, .72fr) minmax(150px, 1fr);
  }
}

@media (max-width: 620px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    padding: 14px;
  }

  .public-booking .public-booking-card__route,
  .public-booking .public-booking-card__details,
  .site-page--trips .trip-search-card .public-booking-card__route,
  .site-page--trips .trip-search-card .public-booking-card__details {
    grid-template-columns: 1fr;
  }

  .public-booking .public-swap,
  .site-page--trips .trip-search-card .public-swap {
    justify-self: center;
    transform: rotate(90deg);
  }

  .public-booking .public-field,
  .site-page--trips .trip-search-card .public-field,
  .site-page--trips .trip-search-card .booking-field,
  .public-booking .public-search-button,
  .site-page--trips .trip-search-card .public-search-button {
    height: 62px;
    min-height: 62px;
  }
}

/* Intrinsic responsive guardrails. These rules are intentionally based on
   available component space rather than a fixed desktop canvas. The form can
   therefore live in the homepage, the route page, or an embedded CMS block
   without allowing a label or action to escape its own surface. */
.public-booking .public-booking-card,
.site-page--trips .trip-search-card .public-booking-card {
  inline-size: min(100%, 940px);
  max-inline-size: 100%;
  contain: inline-size;
}

.public-booking .public-field,
.site-page--trips .trip-search-card .public-field,
.site-page--trips .trip-search-card .booking-field,
.public-booking .public-search-button,
.site-page--trips .trip-search-card .public-search-button {
  min-inline-size: 0;
  max-inline-size: 100%;
}

@media (min-width: 901px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns: minmax(150px, 1.2fr) minmax(40px, 42px) minmax(150px, 1.2fr) minmax(122px, .9fr) minmax(116px, .75fr) minmax(154px, 1fr);
  }
}

@media (max-width: 900px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    inline-size: 100%;
  }
}

/* Official wordmark and final booking geometry.
   Keep these rules last so the shared shell and booking component remain
   stable while legacy page-specific styles are retired. */
.encore-lockup__logo {
  display: block;
  width: clamp(176px, 14vw, 214px);
  height: auto;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
}

.encore-lockup--footer .encore-lockup__logo {
  width: min(214px, 100%);
  max-height: 48px;
  filter: brightness(0) invert(1);
}

.public-booking .public-field,
.site-page--trips .trip-search-card .public-field,
.site-page--trips .trip-search-card .booking-field {
  display: grid;
  grid-template-rows: minmax(15px, auto) minmax(36px, 1fr);
  align-content: center;
  gap: 3px;
  height: 76px;
  min-height: 76px;
  padding: 8px 12px;
  overflow: visible;
}

.public-booking .booking-label,
.site-page--trips .trip-search-card .booking-label {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 15px;
  margin: 0;
  line-height: 1.15;
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}

/* Labels are part of the control's affordance, not disposable overflow. Keep
   the shared booking console compact without hiding words such as
   "Passengers" when the console sits inside the narrower Trips column. */
.public-booking .booking-label,
.site-page--trips .trip-search-card .booking-label {
  font-size: clamp(.59rem, .62vw, .72rem);
  letter-spacing: .01em;
}

.public-booking .booking-label > span:last-child,
.site-page--trips .trip-search-card .booking-label > span:last-child {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.public-booking .public-field .website-select,
.site-page--trips .trip-search-card .public-field .website-select,
.public-booking .public-field .website-select__trigger,
.site-page--trips .trip-search-card .public-field .website-select__trigger,
.public-booking .public-field input,
.site-page--trips .trip-search-card .public-field input {
  min-height: 36px;
  height: 36px;
  line-height: 1.15;
}

.public-booking .public-field .website-select__trigger,
.site-page--trips .trip-search-card .public-field .website-select__trigger {
  overflow: visible;
}

.public-booking .public-search-button,
.site-page--trips .trip-search-card .public-search-button {
  height: 76px;
  min-height: 76px;
}

@media (max-width: 900px) {
  .encore-lockup__logo {
    width: 186px;
    max-height: 40px;
  }
}

@media (max-width: 620px) {
  .encore-lockup__logo {
    width: min(174px, 58vw);
    max-height: 36px;
  }

  .encore-lockup--footer .encore-lockup__logo {
    width: min(198px, 82vw);
    max-height: 44px;
  }

  .public-booking .public-field,
  .site-page--trips .trip-search-card .public-field,
  .site-page--trips .trip-search-card .booking-field,
  .public-booking .public-search-button,
  .site-page--trips .trip-search-card .public-search-button {
    height: 72px;
    min-height: 72px;
  }
}

/* ================================================================
   WEBSITE TYPOGRAPHY STANDARD

   The public reference uses one compact, heavy sans-serif hierarchy: a
   confident display heading, readable supporting copy and dense but legible
   controls. Keep this contract at the end of the Website cascade so legacy
   page compositions cannot silently reintroduce a different type scale.
   This changes type metrics only; booking, tracking and navigation behavior
   remain owned by their existing components.
   ================================================================ */

body:has(.public-topbar) {
  --website-font-ui: var(--et-font-ui);
  --website-font-display: var(--et-font-display);
  font-family: var(--website-font-ui);
  font-size: var(--et-type-body);
  line-height: 1.5;
  letter-spacing: -.008em;
}

body:has(.public-topbar) :is(button, input, select, textarea, a) {
  font-family: var(--website-font-ui);
}

body:has(.public-topbar) :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--website-font-display);
  font-weight: 400;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body:has(.public-topbar) :is(p) {
  font-family: var(--website-font-ui);
  line-height: 1.58;
}

body:has(.public-topbar) :is(.site-kicker, .eyebrow, .public-hero__eyebrow, .booking-label, .public-booking__label) {
  font-family: var(--website-font-ui);
  font-size: var(--et-type-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.2;
}

/* The same title scale is shared by the homepage and all multipage heroes;
   page-specific color, layout and line breaks remain local to each page. */
body:has(.public-topbar) :is(.public-hero h1, .site-page__hero h1, .premium-hero h1) {
  font-size: var(--et-type-title-xl);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.055em;
}

/* Some pages use a purpose-specific hero wrapper (for example
   `.packages-hero` or `.trips-hero`). The public contract is intentionally
   generic at this level so those wrappers cannot drift to a different size. */
body:has(.public-topbar) h1 {
  font-size: var(--et-type-title-xl);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.055em;
}

body:has(.public-topbar) .site-page h1 {
  font-size: var(--et-type-title-xl);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.055em;
}

body:has(.public-topbar) :is(.public-section h2, .site-page__section h2, .site-page__section header h2, .section-head h2, .public-final-cta h2) {
  font-size: var(--et-type-title-lg);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -.04em;
}

body:has(.public-topbar) h2 {
  font-size: var(--et-type-title-lg);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -.04em;
}

body:has(.public-topbar) .site-page h2 {
  font-size: var(--et-type-title-lg);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -.04em;
}

body:has(.public-topbar) :is(.site-card h3, .public-card h3, .destination-card h3, .service-card h3) {
  font-size: var(--et-type-title-md);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.035em;
}

body:has(.public-topbar) h3 {
  font-size: var(--et-type-title-md);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.035em;
}

body:has(.public-topbar) .site-page h3 {
  font-size: var(--et-type-title-md);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.035em;
}

body:has(.public-topbar) :is(.public-hero__copy > p, .site-page__hero > div > p, .site-page__hero p, .section-head > p, .site-page__section > p) {
  font-size: var(--et-type-body-lg);
}

body:has(.public-topbar) :is(.site-menu__button, .site-menu__panel a, .public-nav a, .public-account-link, .public-passenger-link, .button, .btn, .website-select__trigger, .website-select__option, .public-search-button) {
  font-size: var(--et-type-control);
  font-weight: 600;
}

body:has(.public-topbar) :is(.public-topbar .public-nav a, .public-account-link, .public-passenger-link) {
  line-height: 1.2;
}

/* Operational controls must never move under the pointer while a visitor is
   trying to use them. The booking card remains visible immediately; reveal
   motion is reserved for explanatory and decorative sections. */
body:has(.public-topbar) #bookingForm[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ================================================================
   TYPOGRAPHY-SAFE BOOKING CONTROLS

   The approved Website type scale is intentionally more readable than the
   previous condensed UI font. The booking console must therefore own enough
   intrinsic width for real route names, dates and the full passenger label.
   These rules are the final shared contract for the homepage and Trips page;
   they prevent text clipping without changing search behaviour.
   ================================================================ */

/* Trips gets the wider editorial canvas used by its reference composition.
   The compact intro remains beside the planner while the planner receives
   enough width for all six desktop controls. At narrower widths the whole
   composition becomes one controlled column before the form can collide. */
@media (min-width: 1121px) {
  .site-page--trips .trip-search-section > .shell {
    width: min(1440px, calc(100% - 48px));
  }

  .site-page--trips .trip-search-layout {
    grid-template-columns: minmax(300px, .3fr) minmax(0, .7fr);
    gap: clamp(32px, 3vw, 44px);
  }

  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(140px, 1.2fr)
      minmax(38px, 42px)
      minmax(150px, 1.3fr)
      minmax(124px, .98fr)
      minmax(136px, .8fr)
      minmax(162px, 1.05fr);
    gap: 8px;
  }
}

/* At tablet/compact desktop widths, the homepage keeps the route pair on
   one row and moves date, passengers and submit into a deliberate second
   row. Trips itself is stacked earlier so its planner remains readable. */
@media (min-width: 901px) and (max-width: 1120px) {
  .public-booking .public-booking-card {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 10px;
  }

  .public-booking .public-booking-card__details {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(120px, .7fr) minmax(160px, 1fr);
    gap: 10px;
    min-width: 0;
  }

  .site-page--trips .trip-search-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-page--trips .trip-search-card .public-booking-card__route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 10px;
  }

  .site-page--trips .trip-search-card .public-booking-card__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, .7fr) minmax(160px, 1fr);
    gap: 10px;
  }
}

/* The 1280px desktop tier still has to keep the Trips planner in one row
   (the public booking flow is intentionally scannable at desktop widths).
   Reclaim the card's decorative padding and reserve real width for the
   passenger label before the font can push content out of its field. */
@media (min-width: 1121px) and (max-width: 1320px) {
  .site-page--trips .trip-search-card {
    padding-inline: 20px;
  }

  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(138px, 1.05fr)
      minmax(38px, 40px)
      minmax(160px, 1.2fr)
      minmax(116px, .9fr)
      minmax(122px, .82fr)
      minmax(166px, 1.05fr);
    gap: 6px;
  }
}

/* Do not hide meaningful booking values behind the ellipsis that is useful
   for generic selects. Booking fields are bounded, but their values may wrap
   within the fixed control height so a route name remains understandable. */
.public-booking .public-field .website-select__trigger,
.site-page--trips .trip-search-card .public-field .website-select__trigger {
  height: auto;
  min-height: 36px;
  align-items: center;
}

.public-booking .public-field .website-select__value,
.site-page--trips .trip-search-card .public-field .website-select__value,
.public-booking .public-field .website-select__value.is-loading,
.site-page--trips .trip-search-card .public-field .website-select__value.is-loading {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.12;
}

.public-booking .public-field input[type="date"],
.site-page--trips .trip-search-card .public-field input[type="date"] {
  font-size: .9rem;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.public-booking .public-search-button [data-action-label],
.site-page--trips .trip-search-card .public-search-button [data-action-label] {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  text-align: center;
  line-height: 1.1;
}

@media (max-width: 640px) {
  body:has(.public-topbar) :is(.public-hero h1, .site-page__hero h1, .premium-hero h1) {
    font-size: clamp(2.6rem, 12vw, 4rem);
    line-height: .98;
  }

  body:has(.public-topbar) h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
    line-height: .98;
  }

  body:has(.public-topbar) .site-page h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
    line-height: .98;
  }

  body:has(.public-topbar) :is(.public-section h2, .site-page__section h2, .site-page__section header h2, .section-head h2, .public-final-cta h2) {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  body:has(.public-topbar) h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  body:has(.public-topbar) .site-page h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  body:has(.public-topbar) :is(.public-hero__copy > p, .site-page__hero > div > p, .site-page__hero p, .section-head > p, .site-page__section > p) {
    font-size: .98rem;
  }
}

/* Homepage help answers: this module is customer-facing guidance, so its
   question and answer text must remain comfortably readable after the global
   typography standard is applied. Keep the component's compact geometry, but
   do not reduce useful copy to caption-size text. */
.public-faq-section .public-faq-list summary {
  padding: 19px 22px;
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.35;
}

.public-faq-section .public-faq-list p {
  padding: 0 22px 21px;
  font-size: .96rem;
  line-height: 1.62;
}

@media (max-width: 640px) {
  .public-faq-section .public-faq-list summary {
    padding: 17px 18px;
    font-size: 1rem;
  }

  .public-faq-section .public-faq-list p {
    padding: 0 18px 18px;
    font-size: .92rem;
  }
}

/* Shared booking controls: keep the passenger label and route choices fully
   legible instead of compressing the last field into an ellipsis. The same
   grid is used by the homepage and Trips so the component stays predictable
   wherever it is rendered. */
@media (min-width: 1350px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(174px, 1.22fr)
      minmax(42px, 42px)
      minmax(188px, 1.34fr)
      minmax(132px, .92fr)
      minmax(140px, .82fr)
      minmax(162px, 1.02fr);
  }
}

@media (min-width: 1121px) and (max-width: 1349px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(136px, 1.12fr)
      minmax(40px, 40px)
      minmax(168px, 1.2fr)
      minmax(110px, .86fr)
      minmax(124px, .82fr)
      minmax(142px, 1fr);
    gap: 6px;
    padding-inline: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(136px, 1.15fr)
      minmax(40px, 40px)
      minmax(146px, 1.2fr)
      minmax(114px, .84fr)
      minmax(124px, .8fr)
      minmax(150px, 1fr);
  }
}

.public-booking .booking-label > span:last-child,
.site-page--trips .trip-search-card .booking-label > span:last-child {
  overflow: visible;
  text-overflow: clip;
}

body:has(.public-topbar) .public-booking .booking-label,
body:has(.public-topbar) .site-page--trips .trip-search-card .booking-label {
  font-size: .68rem;
  letter-spacing: 0;
}

@media (min-width: 901px) and (max-width: 1349px) {
  body:has(.public-topbar) .public-booking .booking-label,
  body:has(.public-topbar) .site-page--trips .trip-search-card .booking-label {
    font-size: .66rem;
  }
}

/* Final booking-console guardrails. Keep the shared public search readable at
   every insertion point, including the narrower Trips planner. Labels and
   loading states stay inside their own control without changing its geometry. */
.public-booking .booking-label,
.site-page--trips .trip-search-card .booking-label {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  font-size: clamp(.64rem, .72vw, .76rem);
  line-height: 1.2;
  white-space: nowrap;
}

.public-booking .booking-label > span:last-child,
.site-page--trips .trip-search-card .booking-label > span:last-child,
.public-booking .public-field .website-select__value,
.site-page--trips .trip-search-card .public-field .website-select__value {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking .public-field .website-select__value.is-loading,
.site-page--trips .trip-search-card .public-field .website-select__value.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1349px) {
  .public-booking .booking-label,
  .site-page--trips .trip-search-card .booking-label {
    font-size: .66rem;
  }
}

/* Final visual contract: the public booking/search control is one reusable
   composition. Keep labels readable, values contained, and every control on
   the same measured rhythm instead of allowing cascade overrides to create
   clipped or oversized fields. */
.public-booking .booking-label,
.site-page--trips .trip-search-card .booking-label {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  font-size: clamp(.68rem, .72vw, .78rem);
  line-height: 1.2;
  white-space: nowrap;
}

.public-booking .booking-label__icon,
.site-page--trips .trip-search-card .booking-label__icon {
  flex: 0 0 auto;
}

.public-booking .booking-label > span:last-child,
.site-page--trips .trip-search-card .booking-label > span:last-child {
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.public-booking .public-field,
.site-page--trips .trip-search-card .booking-field {
  overflow: visible;
}

.public-booking .public-field .website-select__value,
.site-page--trips .trip-search-card .public-field .website-select__value {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-booking .public-search-button [data-action-label],
.site-page--trips .trip-search-card .public-search-button [data-action-label] {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.1;
}

@media (min-width: 901px) and (max-width: 1120px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(124px, 1.05fr)
      38px
      minmax(142px, 1.18fr)
      minmax(106px, .84fr)
      minmax(108px, .78fr)
      minmax(150px, .96fr);
    gap: 7px;
    padding-inline: 10px;
  }

  .public-booking .booking-label,
  .site-page--trips .trip-search-card .booking-label {
    font-size: .66rem;
  }

  .public-booking .public-search-button,
  .site-page--trips .trip-search-card .public-search-button {
    padding-inline: 8px;
    font-size: .76rem;
  }
}

@media (max-width: 900px) {
  .public-booking .public-field,
  .public-booking .public-search-button,
  .site-page--trips .trip-search-card .booking-field,
  .site-page--trips .trip-search-card .public-search-button {
    height: 64px;
    min-height: 64px;
  }

  .public-booking .booking-label,
  .site-page--trips .trip-search-card .booking-label {
    font-size: .72rem;
  }
}

/* At the compact desktop width the passenger label needs a little more
   breathing room than the older six-column preset allowed. */
@media (min-width: 1121px) and (max-width: 1349px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(136px, 1.12fr)
      40px
      minmax(168px, 1.2fr)
      minmax(110px, .86fr)
      minmax(134px, .86fr)
      minmax(142px, 1fr);
  }
}

/* Large desktop tracks are explicitly zero-based so intrinsic text cannot
   push the final action beyond the booking card. */
@media (min-width: 1350px) {
  .public-booking .public-booking-card,
  .site-page--trips .trip-search-card .public-booking-card {
    grid-template-columns:
      minmax(0, 1.12fr)
      40px
      minmax(0, 1.2fr)
      minmax(0, .86fr)
      minmax(0, .86fr)
      minmax(0, 1fr);
  }

  .public-booking .booking-field,
  .public-booking .public-swap,
  .public-booking .public-search-button,
  .site-page--trips .trip-search-card .booking-field,
  .site-page--trips .trip-search-card .public-swap,
  .site-page--trips .trip-search-card .public-search-button {
    min-width: 0;
  }
}

/* On tablet and mobile the planner is a vertical composition, never a
   squeezed two-column strip. This keeps labels, values and the CTA readable. */
@media (max-width: 900px) {
  body:has(.public-topbar) .site-page--trips .trip-search-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 28px;
  }

  body:has(.public-topbar) .site-page--trips .trip-search-intro,
  body:has(.public-topbar) .site-page--trips .trip-search-card {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

body:has(.public-topbar) .public-topbar .site-menu__panel {
  top: calc(100% - 5px);
}

/* Headings across the public Website use the same confident display weight;
   page-specific light rules must not make one route feel like a different
   product. Dark hero surfaces keep their white contrast. */
body:has(.public-topbar) .site-page :is(h1, h2, h3, h4),
body:has(.public-topbar) .public-hero :is(h1, h2, h3, h4) {
  font-weight: 800;
}

body:has(.public-topbar) .site-page .routes-hero__copy :is(h1, h2, h3, p),
body:has(.public-topbar) .site-page .packages-hero__copy :is(h1, h2, h3, p) {
  color: #fff;
}

/* Light information panels keep their own readable ink even when they sit
   inside a dark hero. This is deliberately last to protect the shared
   component contract from page-level hero colour rules. */
body:has(.public-topbar) .site-page .routes-network-card :is(h1, h2, h3, p, strong, span),
body:has(.public-topbar) .site-page .package-journey-visual :is(h1, h2, h3, p, strong, span) {
  color: #08283b;
}

body:has(.public-topbar) .site-page .routes-network-card .routes-network-card__eyebrow,
body:has(.public-topbar) .site-page .routes-network-card .routes-network-card__footer,
body:has(.public-topbar) .site-page .package-journey-visual .package-journey-visual__status {
  color: #159ac0;
}

/* The About context is a dark editorial section. Its lead, mission and
   vision copy must remain high contrast instead of inheriting the light-page
   text token. */
body:has(.public-topbar) .site-page .about-context :is(h2, h3, p, strong) {
  color: #fff;
}

body:has(.public-topbar) .site-page .about-context .site-kicker {
  color: #7ae4f7;
}

/* Dark editorial surfaces keep their own contrast.  This is the final public
   token layer: no page-specific heading rule may turn a dark section into a
   low-contrast block. */
body:has(.public-topbar) .story-network .story-network__copy :is(h2, p),
body:has(.public-topbar) .routes-next-section :is(h1, h2, h3, p),
body:has(.public-topbar) .about-next :is(h1, h2, h3, p),
body:has(.public-topbar) .contact-intro :is(h1, h2, h3, p),
body:has(.public-topbar) .public-footer__community :is(h2, p) {
  color: #fff;
}

body:has(.public-topbar) .story-network .story-network__copy p,
body:has(.public-topbar) .routes-next-section p,
body:has(.public-topbar) .about-next p,
body:has(.public-topbar) .contact-intro p,
body:has(.public-topbar) .public-footer__community p {
  color: rgba(255, 255, 255, .78);
}

body:has(.public-topbar) .story-network .public-section-label,
body:has(.public-topbar) .routes-next-section .site-kicker,
body:has(.public-topbar) .about-next .site-kicker,
body:has(.public-topbar) .contact-intro .site-kicker,
body:has(.public-topbar) .public-footer__community-label {
  color: #7ae4f7;
}

body:has(.public-topbar) .public-footer__community {
  color: #fff;
}

/* Responsive Encore footer, adapted from the supplied footer kit. */
.encore-footer {
  --ef-deep: #041f31;
  --ef-bg: #062b40;
  --ef-ink: #f5fbff;
  --ef-muted: #b7d0dd;
  --ef-accent: #2caadd;
  --ef-line: rgba(183, 208, 221, .22);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 88px);
  border: 0;
  background: linear-gradient(115deg, var(--ef-deep), var(--ef-bg) 64%, #07334a);
  box-shadow: none;
  color: var(--ef-ink);
}
.encore-footer::before,
.encore-footer::after { display: none !important; }
.encore-footer,
.encore-footer * { box-sizing: border-box; }
.encore-footer [hidden] { display: none !important; }
.encore-footer a { color: inherit; text-decoration: none; }
.encore-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.encore-footer :is(a, button):focus-visible { outline: 3px solid #8edff6; outline-offset: 4px; }
.ef-container { position: relative; z-index: 1; width: min(100% - 48px, 1280px); margin-inline: auto; padding: 58px 0 24px; }
.ef-main { display: grid; grid-template-columns: minmax(230px, 1.28fr) minmax(145px, .82fr) minmax(165px, .9fr) minmax(220px, 1fr); gap: clamp(25px, 3.5vw, 54px); align-items: start; }
.ef-brand > a { display: inline-flex; max-width: 100%; }
.ef-logo { display: block; width: min(260px, 100%); height: auto; max-height: 72px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.ef-brand p { max-width: 36ch; margin: 20px 0 0; color: var(--ef-muted); font-size: .9rem; line-height: 1.65; }
.ef-heading { margin: 2px 0 20px; color: #bfe9f6; font-size: .76rem; font-weight: 750; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
.ef-disclosure { display: none; }
.ef-links { display: grid; gap: 12px; }
.ef-links a { width: fit-content; max-width: 100%; color: #e7f4fa; font-size: .87rem; line-height: 1.45; }
.ef-social-column > p { max-width: 34ch; margin: 0; color: var(--ef-muted); font-size: .88rem; line-height: 1.6; }
.ef-socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 20px; }
.ef-social { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(155, 215, 239, .24); border-radius: 50%; background: rgba(255, 255, 255, .055); transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.ef-social:hover { transform: translateY(-2px); border-color: rgba(142, 223, 246, .6); background: rgba(44, 170, 221, .2); text-decoration: none !important; }
.ef-social img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.ef-contact { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid rgba(142, 223, 246, .65); border-radius: 999px; color: #d7f5ff !important; font-size: .85rem; font-weight: 700; }
.ef-contact img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.ef-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; padding: 20px 0; border-top: 1px solid var(--ef-line); border-bottom: 1px solid var(--ef-line); }
.ef-action { display: flex; min-width: 0; min-height: 66px; align-items: center; gap: 16px; padding: 8px 24px; }
.ef-action:first-child { padding-left: 0; }
.ef-action:not(:last-child) { border-right: 1px solid var(--ef-line); }
.ef-action > img { width: 34px; height: 34px; flex: 0 0 34px; filter: brightness(0) saturate(100%) invert(77%) sepia(19%) saturate(1115%) hue-rotate(157deg) brightness(101%) contrast(96%); }
.ef-action span { display: grid; min-width: 0; gap: 4px; }
.ef-action strong { font-size: .97rem; font-weight: 700; line-height: 1.35; }
.ef-action small { color: var(--ef-muted); font-size: .8rem; line-height: 1.45; }
.ef-bottom-line { height: 8px; margin-top: 14px; overflow: hidden; }
.ef-bottom-line img { width: 100%; height: 100%; object-fit: cover; }
.ef-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; margin-top: 18px; }
.ef-legal-link { min-height: 36px; padding: 3px 0; border: 0; background: transparent; color: #e7f4fa; font: inherit; font-size: .86rem; cursor: pointer; }
.ef-legal-link:disabled { color: rgba(231, 244, 250, .58); cursor: not-allowed; }
.ef-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--ef-muted); font-size: .82rem; line-height: 1.5; }
.ef-wave { position: absolute; z-index: 0; right: 0; bottom: -24px; left: 0; height: 128px; opacity: .55; pointer-events: none; }
.ef-wave img { width: 100%; height: 100%; object-fit: fill; }
.ef-document-dialog { width: min(1080px, calc(100vw - 32px)); max-width: none; height: min(900px, calc(100dvh - 32px)); max-height: none; margin: auto; padding: 16px; overflow: hidden; border: 1px solid #c7dce5; border-radius: 20px; background: #f8fcfe; color: #0b293a; box-shadow: 0 24px 80px rgba(4, 31, 49, .3); }
.ef-document-dialog::backdrop { background: rgba(3, 19, 31, .68); }
.ef-document-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.ef-document-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ef-document-kicker { color: #087ea8; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ef-document-dialog h2 { margin: 3px 0 0; font-size: 1.3rem; font-weight: 700; }
.ef-dialog-close { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #cbdde5; border-radius: 50%; background: #fff; color: #14384d; font-size: 1.5rem; line-height: 1; }
.ef-document-dialog iframe { width: 100%; height: 100%; min-height: 0; border: 1px solid #d1e0e7; border-radius: 12px; background: #fff; }
.ef-document-open { justify-self: end; color: #087ea8 !important; font-size: .85rem; font-weight: 700; }
@media (max-width: 950px) {
  .ef-container { padding-top: 48px; }
  .ef-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 44px; }
  .ef-action { gap: 11px; padding-inline: 14px; }
  .ef-action strong { font-size: .9rem; }
  .ef-action small { font-size: .72rem; }
}
@media (max-width: 620px) {
  .ef-container { width: min(100% - 36px, 480px); padding: 34px 0 20px; }
  .ef-main { display: grid; grid-template-columns: 1fr; gap: 0; }
  .ef-brand { padding-bottom: 23px; }
  .ef-logo { width: min(230px, 100%); max-height: 64px; }
  .ef-brand p { margin-top: 13px; font-size: .86rem; }
  .ef-nav-group { border-top: 1px solid var(--ef-line); }
  .ef-nav-group .ef-heading { display: none; }
  .ef-disclosure { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; padding: 0; border: 0; background: transparent; color: var(--ef-ink); font: inherit; font-size: .9rem; font-weight: 700; text-align: left; }
  .ef-disclosure span { color: #a9d8e8; font-size: 1.1rem; transition: transform .16s ease; }
  .ef-disclosure[aria-expanded="true"] span { transform: rotate(180deg); }
  .ef-links { display: none; padding: 0 0 17px; gap: 13px; }
  .ef-nav-group.is-expanded .ef-links { display: grid; }
  .ef-social-column { padding-top: 23px; }
  .ef-social-column > .ef-heading { margin-bottom: 9px; }
  .ef-social-column > p { font-size: .84rem; }
  .ef-socials { margin: 15px 0 18px; }
  .ef-actions { grid-template-columns: 1fr; margin-top: 26px; padding: 4px 0; }
  .ef-action { min-height: 66px; padding: 13px 0 !important; }
  .ef-action:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--ef-line); }
  .ef-action > img { width: 31px; height: 31px; flex-basis: 31px; }
  .ef-action strong { font-size: .92rem; }
  .ef-action small { font-size: .78rem; }
  .ef-legal { justify-content: flex-start; gap: 12px 20px; margin-top: 14px; }
  .ef-legal-link { min-height: 40px; font-size: .82rem; }
  .ef-bottom { margin-top: 9px; font-size: .76rem; }
  .ef-wave { bottom: -16px; height: 58px; opacity: .24; }
  .ef-document-dialog { width: calc(100vw - 18px); height: calc(100dvh - 18px); padding: 10px; border-radius: 15px; }
  .ef-document-dialog h2 { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ef-social,
  .ef-disclosure span { transition: none; }
}

/* Use the same Inter family that powers the approved product reference.  The
   shared design-system tokens intentionally remain untouched for Admin,
   Passenger and Driver; this is the Website-only typography contract. */
body:has(.public-topbar) {
  font-family: var(--et-ui-font, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

body:has(.public-topbar) :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--et-display-font, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-weight: 800;
}

body:has(.public-topbar) :is(p, small, label, a, button, input, select, textarea, strong, span) {
  font-family: var(--et-ui-font, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

/* Trip guidance cards use their artwork as a quiet full-bleed surface rather
   than as a detached thumbnail.  The white veil preserves text contrast while
   allowing the travel, seat and ticket cues to remain visible. */
body:has(.public-topbar) .site-page--trips .trip-steps-grid article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #eaf5f8;
}

body:has(.public-topbar) .site-page--trips .trip-steps-grid article::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(255, 255, 255, .78);
  pointer-events: none;
}

body:has(.public-topbar) .site-page--trips .trip-step-card__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  opacity: .25;
  filter: saturate(.85) contrast(.94);
}

body:has(.public-topbar) .site-page--trips .trip-steps-grid article > :not(.trip-step-card__art) {
  position: relative;
  z-index: 1;
}
