/* Existing Horizon palette and type, including the standalone request renderer. */
@font-face {
  font-family: HorizonTravel;
  src: url("../horizon-business-site/public/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
body.hj-experience {
  --travel-navy: #0b293b;
  --travel-ink: #102f40;
  --travel-muted: #49647c;
  --travel-line: #b9c7cd;
  --travel-paper: #f8f7f3;
  --travel-gold: #876a38;
  --travel-font: var(--hj-font, HorizonTravel, "Helvetica Neue", Arial, sans-serif);
}
.hj-experience :is(.hjt-header,.hj49-request-header,.hx-footer,.hjd-calendar,#hv-quick-form,#hv-booking-form) {
  font-family: var(--travel-font);
}
.hj-experience :is(.hjt-header,.hx-footer) a { text-underline-offset: .22em; }
.hj-experience :is(.hjt-header,.hj49-request-header,.hx-footer,main) :is(a,button,summary):focus-visible {
  outline: 2px solid #99733b;
  outline-offset: 3px;
}
.hj-experience :is(.hx-footer-grid,.hj-article-layout,.h14-model-layout) > * { min-width: 0; }
.hj-experience .hj-article-layout p { max-width: 72ch; }
.hj-experience .hx-footer-grid h2 { line-height: 1.3; }
.hj-experience .hx-footer-grid a { overflow-wrap: anywhere; }
.hj-experience .hx-footer-bottom { row-gap: 12px; }
.hj-experience :is(main,footer) [id] { scroll-margin-top: 1rem; }
.hj-experience .hj49-request-header { background: var(--travel-navy); }
.hj-experience .hj49-request-header .hx-header-inner { gap: 12px; min-height: 64px; }
.hj-experience .hj49-request-header .hx-logo { min-width: 0; }
.hj-experience .hj49-request-header :is(.hjm-account-links a,.hx-menu-toggle) { min-height: 44px; align-content: center; }
@media (max-width: 600px) {
  .hj-experience :is(.hjt-wrap,.hx-footer > .hx-wrap) { padding-inline: clamp(16px,5vw,24px); }
  .hj-experience .hx-footer-grid > div > a:not(.hx-logo) { display: flex; align-items: center; min-height: 44px; }
  .hj-experience .hx-footer-grid > div:first-child > a { display: inline-block; }
  .hj-experience .hx-footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .hj-experience :is(.hj-article-layout,.h14-model-layout) :is(h1,h2,h3) { overflow-wrap: break-word; }
}

/* Both forms retain their own route, time, passenger and service handlers. */
#hv-quick-form.hjq { padding: clamp(14px,2.6vw,26px); border-radius: 16px; }
#hv-quick-form.hjq .hjq-top { gap: 12px 16px; margin-bottom: 0; }
#hv-quick-form .hjq-stepper { width: auto; max-width: 100%; justify-content: flex-start; }
#hv-quick-form .hjq-stepper::before { margin-inline-end: auto; }
#hv-quick-form.hjq .hjq-stepper input { width: 34px !important; }
#hv-quick-form.hjq .hjq-step { width: 44px; height: 44px; background: transparent; color: var(--travel-navy); box-shadow: none; }
#hv-quick-form.hjq .hjq-step:disabled { color: #697b85; }
#hv-quick-form.hjq .hjq-bar { background: #fff; border-color: #d7dfe2; }
:is(#hv-quick-form,#hv-booking-form) :is(.hjq-field,.hj49-airport-fields .hv-field,.hj49-time-field) { min-width: 0; }
:is(#hv-quick-form,#hv-booking-form) :is(input[data-airport-input],select[name=time],select[name=returnTime],input[type=date],input[type=time]) {
  box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 46px;
  border: 1px solid var(--travel-line); border-radius: 8px; background-color: #fff;
  font: 500 16px/1.3 var(--travel-font); color: var(--travel-ink);
}
:is(#hv-quick-form,#hv-booking-form) :is(input,select,textarea):focus-visible {
  outline: 2px solid var(--travel-gold); outline-offset: 2px;
}
:is(#hv-quick-form,#hv-booking-form) .hjis-choice { gap: 9px; min-height: 44px; align-items: center; }
:is(#hv-quick-form,#hv-booking-form) .hjis-choice input[type=checkbox] {
  box-sizing: border-box; width: 20px !important; min-width: 20px !important; max-width: 20px !important;
  height: 20px !important; min-height: 20px !important; padding: 0 !important; flex: 0 0 20px;
}
#hv-quick-form.hjd-round { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 12px; align-items: end; }
#hv-quick-form.hjd-round > *, #hv-quick-form.hjd-round .hjq-main > .hjq-route { grid-column: 1/-1; }
#hv-quick-form.hjd-round :is(.hjq-main,.hjq-return,.hjq-main > .hjq-when,.hjq-return > .hjq-when),
#hv-booking-form.hjd-round .hj49-schedules > :is(.hj49-outbound,.hj49-return) { display: contents !important; }
#hv-quick-form.hjd-round .hjq-return > .hjq-leg-title,
#hv-booking-form.hjd-round .hj49-schedules :is(.hj49-schedule-label,[data-return-route]) { display: none !important; }
#hv-booking-form.hjd-round .hj49-schedules {
  display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; align-items: end; gap: 14px 12px;
}
:is(#hv-booking-form,#hv-quick-form).hjd-round label:is([for=hv-date],[for=hv-returnDate]) {
  position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
  clip-path: inset(50%); white-space: nowrap; margin: 0 !important; padding: 0 !important; pointer-events: none;
}
:is(#hv-booking-form,#hv-quick-form) .hjd-trigger {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; grid-column: 1/-1;
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 64px; padding: 10px 15px;
  border: 1px solid var(--travel-line); border-radius: 10px; background: #fff;
  color: var(--travel-ink); text-align: left; font: inherit; cursor: pointer;
}
:is(#hv-booking-form,#hv-quick-form) .hjd-trigger:hover { border-color: var(--travel-muted); background: #fafaf8; }
:is(#hv-booking-form,#hv-quick-form) .hjd-trigger[hidden] { display: none !important; }
.hjd-trigger small,.hjd-stages small {
  display: block; color: var(--travel-muted); font: 600 12px/1.5 var(--travel-font);
}
.hjd-trigger b,.hjd-stages b { display: block; color: var(--travel-ink); font: 600 15px/1.4 var(--travel-font); }
.hjd-trigger i { color: var(--travel-gold); font: 400 21px/1 var(--travel-font); }
@media (max-width: 640px) {
  #hv-quick-form.hjq .hjq-stepper { display: flex; width: 100%; padding-inline: 8px; border-radius: 8px; }
  #hv-quick-form.hjq .hjq-top { margin-bottom: 14px; }
  #hv-quick-form.hjd-round .hjq-top { margin-bottom: 0; }
  #hv-quick-form.hjq .hjq-route:has(> .hjq-swap),
  #hv-booking-form.hjq-flow .hj49-airport-fields:has(> .hjq-swap) {
    display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 8px 10px; align-items: center;
  }
  #hv-quick-form.hjq .hjq-route:has(> .hjq-swap) > label,
  #hv-booking-form.hjq-flow .hj49-airport-fields:has(> .hjq-swap) > label { grid-column: 1; }
  #hv-quick-form.hjq .hjq-route > .hjq-swap,#hv-booking-form.hjq-flow .hj49-airport-fields > .hjq-swap {
    grid-column: 2; grid-row: 1 / span 2; margin: 12px 0 0; width: 44px; height: 44px;
  }
  #hv-quick-form.hjq .hjq-time .hjq-cap,#hv-booking-form .hj49-time-field > span:first-child {
    font: 600 13px/1.35 var(--travel-font); min-height: 2.7em;
  }
}
@media (max-width: 360px) {
  #hv-quick-form.hjd-round .hjq-time,#hv-booking-form.hjd-round .hj49-time-field { grid-column: 1/-1; }
  #hv-quick-form.hjq .hjq-time .hjq-cap,#hv-booking-form .hj49-time-field > span:first-child { min-height: 0; }
}

/* Native modal provides Escape, background inertness and focus containment on iOS. */
dialog.hjd-calendar {
  box-sizing: border-box; width: min(410px,calc(100% - 24px)); max-width: 100%; max-height: 90vh; max-height: 90dvh;
  overflow: auto; overscroll-behavior: contain; padding: 20px; margin: auto; color: var(--travel-ink);
  border: 1px solid #d4dadd; border-radius: 18px; background: #fff; box-shadow: 0 18px 70px #061b2b48;
}
dialog.hjd-calendar:not([open]) { display: none; }
.hjd-calendar::backdrop { background: rgb(6 24 37 / 58%); }
.hjd-calendar button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
.hjd-calendar button:focus-visible { outline: 2px solid var(--travel-gold); outline-offset: -2px; }
.hjd-head,.hjd-month { display: flex; align-items: center; justify-content: space-between; }
.hjd-head h2 { margin: 0; color: var(--travel-navy); font: 650 24px/1.25 var(--travel-font); letter-spacing: -.03em; }
.hjd-head .hjd-close,.hjd-month button {
  display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%;
  color: var(--travel-navy); background: transparent; font: 400 26px/1 var(--travel-font);
}
.hjd-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.hjd-stages button { padding: 9px 12px; min-height: 55px; text-align: left; border: 1px solid #d4dadd; border-radius: 8px; background: #fff; }
.hjd-stages button[aria-pressed=true] { background: var(--travel-paper); border-color: var(--travel-gold); }
.hjd-month strong { font: 650 17px/1.4 var(--travel-font); }
.hjd-month button:disabled,.hjd-stages button:disabled { opacity: .45; cursor: default; }
.hjd-week,.hjd-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.hjd-week { margin: 6px 0; text-align: center; color: var(--travel-muted); font: 600 12px/1.5 var(--travel-font); }
.hjd-days { row-gap: 2px; }
.hjd-days .hjd-day { display: grid; place-items: center; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 7px; color: var(--travel-ink); background: #fff; font: 550 15px/1 var(--travel-font); }
.hjd-day[aria-current=date] { text-decoration: underline; text-underline-offset: 4px; }
.hjd-days .hjd-between { background: #eee9df; border-radius: 0; }
.hjd-days .hjd-day:disabled { color: #859199; cursor: default; }
.hjd-days .hjd-day[aria-pressed=true] { background: var(--travel-navy); color: #fff; }
.hjd-calendar .hjd-message { color: var(--travel-muted); margin: 14px 0 10px; font: 500 13px/1.4 var(--travel-font); }
.hjd-calendar .hjd-apply { display: block; width: 100%; min-height: 46px; border: 0; border-radius: 8px; background: var(--travel-navy); color: white; font: 650 15px/1.4 var(--travel-font); }
.hjd-calendar .hjd-apply:disabled { cursor: default; background: #e1e6e8; color: #51636e; }
@media (max-width: 600px) {
  dialog.hjd-calendar { width: 100%; margin: auto 0 0; padding: 14px max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left)); border-radius: 18px 18px 0 0; }
}
#hv-quick-form.hjq .hjq-time .hjq-cap {
  white-space: normal; overflow: visible; text-overflow: clip;
}
:is(#hv-booking-form,#hv-quick-form) .hjd-trigger:focus-visible {
  outline: 2px solid var(--travel-gold) !important; outline-offset: 2px !important; box-shadow: none !important;
}
#hv-booking-form.hjq-flow .hj49-trip-switch {
  padding: 4px; gap: 4px; border: 0; border-radius: 999px; background: #eef1f3;
}
#hv-booking-form.hjq-flow .hj49-trip-switch button {
  min-height: 44px; border-radius: 999px; border: 0; font: 600 14px/1.25 var(--travel-font);
}
#hv-booking-form.hjq-flow .hjq-flow-pax .hjq-stepper {
  box-sizing: border-box; border-radius: 8px; padding-inline: 8px; border-color: var(--travel-line);
}
#hv-booking-form.hjq-flow .hjq-step {
  width: 44px; height: 44px; background: transparent; color: var(--travel-navy); box-shadow: none;
}
:is(#hv-quick-form.hjq .hjq-foot,#hv-booking-form) fieldset.hjis-services {
  display: block; padding: 8px 12px 10px; margin-block: 4px; border: 1px solid #d7dfe2; border-radius: 10px;
}
:is(#hv-quick-form.hjq .hjq-foot,#hv-booking-form) fieldset.hjis-services > legend {
  float: none; padding: 0 6px; margin: 0; color: var(--travel-ink); font: 650 14px/1.4 var(--travel-font);
}
:is(#hv-quick-form.hjq .hjq-foot,#hv-booking-form) .hjis-choice {
  display: flex; min-height: 44px; margin: 0; padding: 0; font: 500 14px/1.4 var(--travel-font);
}
@media(max-width:640px){
  #hv-quick-form.hjq .hjq-time select,#hv-booking-form .hj49-time-field select { padding-inline: 8px 20px; }
}
:is(#hv-booking-form,#hv-quick-form) .hjd-trigger[aria-invalid=true] { border: 2px solid #a1302b; }
.hjm-page :is(.hjm-card,.hj50-auth-card) { min-width: 0; }
.hjm-page :is(.hj50-auth-card,.hjm-account-links) { font-family: var(--travel-font); }
.hjm-page .hj50-auth-card :is(input,select) { font-size: max(16px,1em); }
.hjs-app :is(.hjs-sidebar,.hjs-foot) { font-family: HorizonTravel, "Helvetica Neue", Arial, sans-serif; }
.hjs-app .hjs-sidebar a:focus-visible,.hjs-app .hjs-sidebar button:focus-visible { outline: 2px solid #d8bc86; outline-offset: 2px; }
@media(max-width:640px) {
  .hjs-app :is(.hjw-menu-toggle,#hjw-workspace-nav a) { min-height: 44px; }
  .hjs-app .hjs-foot { line-height: 1.5; }
}
/* The master SVG includes generous transparent margins. Frame its existing artwork
   within the header slot so the wordmark remains legible alongside the mobile menu. */
.hj-experience :is(.hjt-header .hjt-logo,.hj49-request-header .hx-logo) {
  position: relative; display: block; box-sizing: border-box;
  width: clamp(112px,26vw,205px); height: 48px; margin: 0;
  flex: 0 1 auto; min-width: 0; overflow: hidden;
}
.hj-experience :is(.hjt-header .hjt-logo,.hj49-request-header .hx-logo) img {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%);
  width: 163% !important; height: auto !important; max-width: none !important;
  max-height: none !important; margin: 0 !important; object-position: center;
}
.hj49-request-page main .hj49-request-progress li[aria-current=step] > span {
  background: #0b293b !important; border-color: #0b293b !important; color: white !important;
}
.hj49-request-page main .hj49-request-progress li[aria-current=step] { color: #102f40 !important; }
:is(#hv-booking-form,#hv-quick-form) [data-hjd-origin] small {
  display:block; font:400 12px/1.4 var(--travel-font); color:#486171;
}
