.mn-location-control, .mn-search-choice { position: relative; flex: 1; min-width: 0; }
.mn-location-control input[name="keyword"] { display: block; width: 100%; min-width: 0; }
.mn-location-control input[name="keyword"]:focus {
  outline: none;
  box-shadow: none;
  caret-color: var(--mn-accent);
}
.mn-location-control [data-suggestion-status] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.mn-search-panel {
  position: absolute;
  z-index: 40;
  min-width: 0;
  max-height: min(310px, 53dvh);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #d8e5ed;
  border-radius: 10px;
  background: #fff;
  color: #303536;
  box-shadow: 0 8px 24px #223b5626;
  text-align: left;
  scrollbar-width: thin;
}
.mn-search-panel[hidden] { display: none; }
.mn-location-panel {
  top: calc(100% + 9px);
  inset-inline-start: 0;
  width: max(100%, min(274px, calc(100vw - 76px)));
}
.mn-search-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}
.mn-search-option[aria-selected="true"] { background: #e8f6fd; }
.mn-suggestion-kind {
  flex: none;
  min-width: 43px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #e8f6fd;
  color: #126d96;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}
.mn-suggestion-kind[data-kind="station"] { background: #edf1ff; color: #475a9a; }
.mn-suggestion-kind[data-kind="venue"] { background: #eef5ef; color: #396946; }
.mn-suggestion-text { min-width: 0; overflow-wrap: anywhere; }
.mn-suggestion-context { margin-inline-start: 6px; color: #63717a; font-size: 11px; }
.mn-search-choice > select[hidden] { display: none; }
.mn-choice-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  gap: 7px;
  padding: 0 6px 0 0;
  border: 0;
  border-radius: 4px;
  text-align: left;
  color: #303536;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  background: none;
}
.mn-choice-button[aria-expanded="true"] { background: #f0f8fc; }
.mn-choice-button:focus-visible { outline: 2px solid #687981; outline-offset: 2px; }
.mn-choice-button[data-placeholder] { color: #68747b; }
.mn-choice-button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-choice-arrow {
  width: 6px;
  height: 10px;
  flex: none;
  object-fit: contain;
  transform: rotate(90deg);
}
.mn-choice-button[aria-expanded="true"] .mn-choice-arrow { transform: rotate(-90deg); }
.mn-choice-panel { top: calc(100% + 9px); inset-inline-end: 0; width: max(100%, 148px); }
.mn-choice-panel .mn-search-option { justify-content: space-between; }
.mn-choice-panel [data-chosen] { color: #136f99; font-weight: 700; }
.mn-choice-panel [data-chosen]::after { content: "✓"; }
.query-field .mn-choice-button { min-height: 34px; font-size: 13px; }
#filters .mn-location-control { margin: -5px 0 12px; }

@media (max-width: 740px) {
  .mn-search-option { min-height: 41px; }
  .mn-choice-panel { width: max(100%, 134px); }
  .search-form .people-field .mn-choice-panel { inset-inline: 0 auto; }
}
@media (max-width: 500px) {
  .query-field .mn-choice-button { padding-inline-end: 3px; font-size: 12px; }
  .mn-choice-button { gap: 5px; }
}
@media (max-width: 360px) {
  .mn-choice-button { font-size: 12px; }
}

:root { --mn-compact-header-height:70px; }
.header-search { position:relative;transition:transform .16s ease; }
.header-search:focus-within { transform:scale(1.018); }
@media (max-width:900px) {
  .header-search:focus-within { transform:scale(1.01); }
}
@media (max-width:760px), (min-width:901px) {
  .site-header[data-compact-header] {
    position:sticky;top:0;z-index:60;background:#fff;
  }
}
@media (max-width:760px) {
  html:has(.site-header[data-compact-header]) {
    --mn-mobile-header-height:61px;
    scroll-padding-top:calc(var(--mn-mobile-header-height) + 12px);
  }
  .site-header[data-compact-header].is-compact {
    /* Keep the expanded header's layout space so toggling it preserves scroll position. */
    clip-path:inset(0 0 calc(100% - var(--mn-mobile-header-height)) 0);
  }
  .site-header[data-compact-header].is-compact .header-search { visibility:hidden; }
}
@media (min-width:901px) {
  html:has(.site-header[data-compact-header]) { scroll-padding-top:calc(var(--mn-compact-header-height) + 12px); }
  .site-header[data-compact-header] .header-inner { transition:min-height .18s ease,padding-block .18s ease; }
  .site-header[data-compact-header].is-compact { box-shadow:0 3px 12px #173e531a; }
  .site-header[data-compact-header].is-compact .header-inner {
    min-height:calc(var(--mn-compact-header-height) - 1px);padding-block:6px;
  }
  .site-header.is-compact ~ main .booking { top:calc(var(--mn-compact-header-height) + 30px); }
}
@media (prefers-reduced-motion:reduce) {
  .header-search,.site-header[data-compact-header] .header-inner { transition:none; }
}
@media (min-width:931px) {
  .header-search {
    grid-template-columns:minmax(0,1.3fr) minmax(0,.97fr) minmax(0,1.01fr) 45px;
  }
  .header-search .query-field:not(.query-place) { padding-inline:10px; }
}
@media (max-width:500px) {
  .header-search {
    grid-template-columns:minmax(0,1.1fr) minmax(0,.93fr) minmax(0,1fr) 32px;
  }
}
@media (max-width:360px) {
  .header-search .query-field:not(.query-place) > .icon { display:none; }
  .header-search .mn-choice-button { font-size:11px; }
}

.mn-search-action {
  position: relative;
  color: #fff;
}
.mn-search-action .mn-search-action-icon {
  background-color: currentColor;
  mask: url('/redesign/top/assets/svg/ico_search.svg') center / contain no-repeat;
  filter: none;
}
.header-search .mn-search-action-icon { width: 18px; height: 18px; }
@media (max-width: 930px) {
  .header-search .mn-search-action-icon { width: 16px; height: 16px; }
}
@media (hover: hover) {
  .mn-search-action:hover {
    color: var(--mn-accent);
    background-color: #fff;
    box-shadow: inset 0 0 0 1px var(--mn-accent);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mn-search-action {
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
  }
  .mn-search-action:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--mn-accent);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    animation: mn-search-action-ring .28s ease-out;
  }
  @keyframes mn-search-action-ring {
    from { inset: 0; opacity: .85; }
    to { inset: -5px; opacity: 0; }
  }
}
