/* Only the three existing search-summary fields become direct dropdowns. */
.departure-summary{grid-template-columns:1fr 1fr 1.25fr;gap:0;padding:8px;z-index:8;isolation:isolate}
.departure-summary-field{position:relative;min-width:0}
.departure-summary-field+.departure-summary-field{border-left:1px solid #eceef2}
.departure-page .departure-choice{width:100%;min-height:67px;margin:0;padding:12px 17px;border:0;border-radius:9px;background:transparent;color:#17243b;text-align:left;transition:background .15s}
.departure-choice:hover,.departure-choice[aria-expanded=true]{background:#f5f6f8}
.departure-summary-copy{display:block;min-width:0;flex:1}
.departure-summary-copy>span{display:block;font-size:11px;color:#626773;line-height:1.5;margin-bottom:3px}
.departure-page .departure-choice-chevron{width:15px;height:15px;color:#89909c;margin-left:auto}
.departure-choice[aria-expanded=true]>.departure-choice-chevron{transform:rotate(180deg)}
.departure-picker{position:absolute;top:calc(100% + 12px);left:0;width:350px;max-width:calc(100vw - 64px);padding:8px;border:1px solid #e5e8ef;border-radius:13px;background:#fff;box-shadow:0 12px 36px #17243b24;z-index:10}
/* Destination opens immediately below its own selector, not offset toward the page edge. */
.departure-summary-field:last-child .departure-picker{left:0;right:0;width:100%;max-width:100%}
.departure-page .departure-picker-search{display:block;width:100%;height:43px;padding:10px 12px;margin:0 0 6px;border:1px solid #e5e8ef;border-radius:8px;background:#fafbfc;color:#17243b;font:inherit;font-size:14px;outline-offset:1px}
.departure-picker-search:focus-visible{outline:2px solid #b38a48}
.departure-picker-options{position:relative;max-height:min(288px,45vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:7px}
.departure-picker-options:focus-visible{outline:2px solid #b38a48;outline-offset:1px}
.departure-picker-option{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;border-radius:7px;color:#17243b;font-size:13px;line-height:1.5;cursor:pointer;user-select:none}
.departure-picker-option:hover,.departure-picker-option.is-active{background:#f2f4f7}
.departure-picker-option[aria-selected=true]{color:#785b2f;font-weight:650}
.departure-picker-flag{width:24px;height:18px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px #17243b12;flex:none}
.departure-picker-name{min-width:0;overflow-wrap:anywhere}
.departure-picker-current{margin-left:auto;font-size:15px;color:#785b2f}
.departure-page .departure-picker-empty{margin:0;padding:16px 12px;color:#626773;font-size:13px}
@media(max-width:760px){.departure-summary{grid-template-columns:1fr 1fr;padding:6px;gap:0}.departure-summary-field{position:static}.departure-summary-field:last-child{grid-column:1/-1;border-left:0;border-top:1px solid #eceef2}.departure-page .departure-choice{min-height:65px;padding:11px 10px;gap:9px}.departure-summary-copy>span{font-size:10px}.departure-picker,.departure-summary-field:last-child .departure-picker{top:calc(100% + 8px);left:0;right:0;width:auto;max-width:100%;padding:8px}.departure-page .departure-picker-search{font-size:16px}.departure-picker-option{font-size:14px;min-height:46px}.departure-page .departure-choice-chevron{width:13px;height:13px}.departure-picker-options{max-height:min(270px,40vh)}}
@media(prefers-reduced-motion:reduce){.departure-page .departure-choice{transition:none}}

/* Keep short labels and values on one line on the smallest phones. */
@media(max-width:359px){.departure-page .departure-choice{padding-inline:8px;gap:6px}.departure-choice .departure-summary-icon{width:21px}.departure-choice .departure-summary-icon img,.departure-choice .departure-summary-icon svg{width:21px}.departure-page .departure-choice-chevron{width:10px;height:10px}.departure-summary-copy>span{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.departure-summary-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* Mobile direct-choice picker: open as a viewport sheet without forcing the keyboard. */
@media(max-width:760px){
  .departure-page .departure-picker[data-mobile-sheet]{
    position:fixed!important;left:var(--departure-picker-left,12px)!important;right:auto!important;
    width:var(--departure-picker-width,calc(100vw - 24px))!important;max-width:none!important;margin:0;transform:none;
    display:flex;flex-direction:column;z-index:1000;
    padding:10px 10px calc(10px + env(safe-area-inset-bottom));
    border-radius:18px;box-shadow:0 24px 70px #17243b45;
  }
  .departure-page .departure-picker[data-mobile-sheet][hidden]{display:none!important}
  .departure-page .departure-picker[data-mobile-sheet] .departure-picker-search{
    flex:none;min-height:44px;margin-bottom:8px;font-size:16px;
  }
  .departure-page .departure-picker[data-mobile-sheet] .departure-picker-options{
    flex:1;min-height:0;max-height:none;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  }
  .departure-page .departure-picker[data-mobile-sheet] .departure-picker-option{min-height:48px}
}

/* Separate cards already have their own border; legacy grid dividers left faint marks. */
.departure-page #departureSummary>.departure-summary-field{border:0}
@media(max-width:760px){
  .departure-page .departure-picker[data-mobile-sheet][data-compact]{
    padding:8px;border-radius:12px;box-shadow:0 12px 36px #17243b24;
  }
}
