.voyage-unified-search {
  --search-field-bg: #f4f8fe;
  --search-field-border: #d5e2f3;
  --search-field-radius: 11px;
  --search-field-height: 64px;
  --search-action: #1b54cb;
  --search-label: #435d81;
  --search-value: #142e52;
}

.voyage-home .voyage-unified-search .voyage-search__surface {
  padding: clamp(10px, 1.7vw, 19px);
  border-radius: clamp(15px, 2vw, 22px);
}
.voyage-unified-search :is(.aviatrip-v2-hotel-panel, .aviatrip-v2-car-panel, .aviatrip-v2-cruise-panel) {
  padding: 0 !important;
}
.voyage-unified-search :is(.hotel64-search--home, .car58-search--home, .cruise73-search--home) {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.voyage-unified-search .hotel64-search__main,
.voyage-unified-search .cruise73-search__grid,
.voyage-unified-search .car58-search__form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(100px, .7fr);
  gap: 8px;
  align-items: stretch;
}
.voyage-unified-search .hotel64-search__main {
  grid-template-columns: minmax(150px, 1.35fr) repeat(4, minmax(0, 1fr)) minmax(100px, .76fr);
}
.voyage-unified-search .car58-search__form {
  grid-template-columns: minmax(0, 1.2fr) 34px minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)) minmax(100px, .75fr);
}
.voyage-unified-search :is(.car58-search__locations, .car58-search__details) { display: contents; }
.voyage-unified-search .car58-field,
.voyage-unified-search :is(.hotel64-search__submit, .car58-search__submit, .cruise73-search__submit) { grid-column: auto; }
.voyage-unified-search :is(.hotel64-field, .car58-autocomplete, .car58-field, .cruise60-field, .search-field) {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: var(--search-field-height);
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--search-field-border);
  border-radius: var(--search-field-radius);
  background: var(--search-field-bg);
}
.voyage-home .voyage-unified-search :is(.hotel64-field, .car58-autocomplete, .car58-field, .cruise60-field, .search-field):focus-within {
  border-color: #5a86dd;
  background: #fff;
  box-shadow: 0 0 0 2px #5a86dd30;
}
.voyage-unified-search .hotel64-field__icon,
.voyage-unified-search :is(.car58-input__icon, .cruise60-field > div > i, .search-field > i) {
  display: none;
}
.voyage-unified-search :is(.car58-input, .cruise60-field > div) {
  min-height: 22px;
  height: auto;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.voyage-unified-search .car58-autocomplete.is-same-location .car58-input,
.voyage-unified-search :is(.car58-input, .cruise60-field > div):focus-within {
  background: transparent;
  box-shadow: none;
}
.voyage-unified-search .car671-same-location-copy {
  inset-inline: 0;
  color: var(--search-value);
  font-size: .82rem;
}
.voyage-unified-search :is(
  .hotel64-field > label, .hotel64-field > span:not(.hotel64-field__icon),
  .hotel64-guests__toggle > span, .hotel67-type__toggle > span,
  .car58-autocomplete > label, .car58-label-row > label:first-child, .car58-field > label,
  .cruise60-field > span, .search-field > span
) {
  margin: 0 0 4px !important;
  padding: 0;
  color: var(--search-label);
  font: 700 .7rem/1.25 var(--voyage-sans);
  letter-spacing: normal;
  text-transform: none;
}
.voyage-unified-search :is(.hotel64-guests__toggle, .hotel67-type__toggle) {
  min-height: 0;
  padding: 0;
}
.voyage-unified-search :is(.hotel64-field, .car58-input, .cruise60-field, .search-field) :is(input:not([type=hidden]), select, .hotel64-guests__toggle strong, .hotel67-type__toggle strong) {
  color: var(--search-value) !important;
  -webkit-text-fill-color: var(--search-value) !important;
  font-size: .86rem !important;
  font-weight: 680 !important;
}
.voyage-unified-search :is(.car58-input, .cruise60-field) input:is([type=date], [type=month], [type=time]) { color-scheme: light; }
.voyage-unified-search .car58-swap {
  position: static;
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  min-width: 0;
  align-self: center;
  margin: 0;
  border: 1px solid var(--search-field-border);
  border-radius: 9px;
  background: #f1f6ff;
  color: var(--search-action);
  box-shadow: none;
}
.voyage-unified-search :is(.hotel64-search__submit, .car58-search__submit, .cruise73-search__submit, .search-submit) {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 7px;
  min-height: 48px;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--search-action);
  border-radius: var(--search-field-radius);
  background: var(--search-action);
  color: #fff;
  font: 750 .91rem/1.25 var(--voyage-sans);
  box-shadow: 0 3px 7px #174bab23;
}
.voyage-unified-search .cruise73-search__submit {
  min-height: 48px !important;
  padding: 8px 10px !important;
  border-radius: var(--search-field-radius) !important;
}
.voyage-unified-search :is(.hotel64-search__submit, .car58-search__submit, .cruise73-search__submit, .search-submit):hover {
  transform: none;
  border-color: #133e9f;
  background: #133e9f;
}
.voyage-unified-search :is(.hotel64-search__submit, .car58-search__submit, .cruise73-search__submit) strong { font: inherit; }
.voyage-unified-search :is(button, .voyage-search__footer, .voyage-car-more) svg,
.voyage-unified-search .voyage-car-options svg { flex: 0 0 16px; width: 16px; height: 16px; }
.voyage-unified-search .cruise73-search__intro { display: none; }
.voyage-unified-search :is(.cruise73-search__note, .car58-search__note, .hotel64-search__note) {
  margin: 8px 0 0;
  color: var(--voyage-muted);
  font-size: .72rem;
  line-height: 1.4;
}
.voyage-unified-search .car58-search__popular {
  grid-column: 1 / -1;
  flex-wrap: nowrap;
  overflow-x: auto;
  align-items: center;
  margin: 0;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.voyage-unified-search .car58-search__popular > :is(span, button) { flex: 0 0 auto; width: auto; white-space: nowrap; }
.voyage-unified-search .car58-search__popular button { border-color: var(--search-field-border); color: #234d92; background: #f0f6ff; }
.voyage-car-options { grid-column: 1 / -1; min-width: 0; }
.voyage-car-options__same { float: left; }
.voyage-car-options__same .car58-same-toggle {
  display: inline-flex;
  gap: 6px;
  min-height: 34px;
  margin-inline-end: 12px;
  color: var(--search-label);
  font-size: .73rem;
}
.voyage-car-more { display: block; }
.voyage-car-more:not([open]) .voyage-car-more__fields { display: none; }
.voyage-car-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--search-action);
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.voyage-car-more summary::-webkit-details-marker { display: none; }
.voyage-car-more summary:hover, .voyage-car-more[open] summary { background: #edf4ff; }
.voyage-car-more__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.voyage-search__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}
.voyage-search__footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: #234f9a;
  font-size: .75rem;
  font-weight: 760;
}
.voyage-search__footer a:hover { text-decoration: underline; }
.voyage-home .voyage-unified-search .voyage-search__popular { margin-top: 3px; }

@media (max-width: 980px) {
  .voyage-unified-search .hotel64-search__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .voyage-unified-search .car58-search__form { grid-template-columns: minmax(0, 1fr); }
  .voyage-unified-search .car58-search__locations { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); grid-column: 1 / -1; gap: 8px; }
  .voyage-unified-search .car58-search__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(96px, .72fr);
    grid-column: 1 / -1;
    gap: 8px;
    align-items: stretch;
    margin-top: 0;
  }
}
@media (max-width: 650px) {
  .voyage-unified-search { --search-field-height: 58px; }
  .voyage-unified-search :is(.hotel64-search__main, .cruise73-search__grid, .car58-search__details, .voyage-car-more__fields) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voyage-unified-search .hotel64-field--destination,
  .voyage-unified-search :is(.cruise73-search__submit, .car58-search__submit, .hotel64-search__submit) { grid-column: 1 / -1; }
  .voyage-unified-search :is(.hotel64-field, .car58-input, .cruise60-field, .search-field) :is(input:not([type=hidden]), select) { font-size: 16px !important; }
}

/* The native flight fallback follows the same form style. */
.voyage-unified-search .search-field > div > b { display: none; }
.voyage-unified-search .search-field > div { min-width: 0; }
.voyage-unified-search .search-field small { color: var(--search-label); }
.voyage-unified-search .search-submit em { display: inline; margin: 0; font: inherit; }
.voyage-unified-search .search-submit > span { font-size: 1.15rem; }

/* The light-DOM widget uses the same accent as the native panels. */
.voyage-unified-search #tpwl-search :is(button, input)[type="submit"] {
  background-color: var(--search-action) !important;
  border-radius: var(--search-field-radius) !important;
  color: #fff !important;
}

/* Anchor the accommodation choices to the right of the field on narrow screens. */
.voyage-unified-search .hotel67-type__panel {
  left: auto !important;
  right: 0 !important;
  width: min(305px, calc(100vw - 56px)) !important;
  min-width: 0 !important;
  padding: 8px !important;
}
.voyage-unified-search .hotel67-type__panel button {
  grid-template-columns: 34px minmax(0, 1fr) 16px !important;
  gap: 7px !important;
  min-height: 56px !important;
  padding: 7px 8px !important;
}
.voyage-unified-search .hotel67-type__panel .hotel67-type__icon {
  width: 34px !important;
  height: 34px !important;
}
