/* The search panel owns its layout across the older homepage style layers. */
html body .restored-search:has(.creek-search-panel) {
  padding: 12px 28px 40px !important;
}

html body .restored-search:has(.creek-search-panel) .search-intro {
  max-width: 1280px;
  width: 100% !important;
  margin: 0 auto 18px !important;
}

html body .restored-search:has(.creek-search-panel) .search-intro h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: #d7dae2 !important;
  box-shadow: none !important;
  overflow: visible;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .search-field {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  grid-column: auto !important;
  grid-row: 2 !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 82px !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .search-field label {
  display: block !important;
  margin: 0 !important;
  color: #616671 !important;
  font: 500 12px/18px 'DM Sans', Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .search-field select,
html body.creek-rounded-ui #quickSearch.creek-search-panel .search-field input:not([type='hidden']),
html body.creek-rounded-ui #quickSearch.creek-search-panel .creek-trip-date-trigger {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 22px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  color: #101419 !important;
  font: 600 16px/24px 'DM Sans', Arial, sans-serif !important;
  text-align: left !important;
  text-align-last: left !important;
  box-shadow: none !important;
  outline: none !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel #returnLocation {
  opacity: 1;
  color: #616671 !important;
  -webkit-text-fill-color: #616671;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .date-time-entry {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .date-time-entry > .creek-trip-date-trigger,
html body.creek-rounded-ui #quickSearch.creek-search-panel .date-time-entry > input:not([type='hidden']) {
  flex: 1 1 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .creek-trip-date-trigger::after {
  display: none !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .date-time-entry > select {
  flex: 0 0 110px !important;
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
  padding: 0 0 0 8px !important;
  border-left: 1px solid #e7e8ec !important;
  font-size: 14px !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .search-type-field {
  grid-column: 1 / 4 !important;
  grid-row: 1 !important;
  max-width: 840px;
  min-height: 52px !important;
  padding: 6px !important;
  border-radius: 999px !important;
  background: #c9cdd4 !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .has-vehicle-tabs > label,
html body.creek-rounded-ui #quickSearch.creek-search-panel .has-vehicle-tabs > select {
  display: none !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-types {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-types button {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #101419 !important;
  font: 600 14px/20px 'DM Sans', Arial, sans-serif;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background-color .15s, color .15s;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-categories {
  display: contents;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-types button:hover {
  background: #e5e7eb !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-types button[aria-pressed='true'] {
  background: #101419 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .btn.btn-search {
  grid-column: 4 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 14px 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ff3600 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font: 700 16px/24px 'DM Sans', Arial, sans-serif !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .search-field:focus-within {
  outline: none !important;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel .has-vehicle-tabs:focus-within {
  outline: none;
}

html body.creek-rounded-ui #quickSearch.creek-search-panel button:focus-visible {
  outline: 2px solid #101419 !important;
  outline-offset: 3px !important;
}

@media (min-width: 821px) and (max-width: 1150px) {
  html body.creek-rounded-ui #quickSearch.creek-search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-field {
    grid-row: auto !important;
  }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-type-field,
  html body.creek-rounded-ui #quickSearch.creek-search-panel .btn.btn-search {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    max-width: none;
  }
}

@media (max-width: 820px) {
  html body .restored-search:has(.creek-search-panel) {
    padding: 8px 12px 30px !important;
  }
  html body.creek-rounded-ui #quickSearch.creek-search-panel {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 14px !important;
    gap: 12px !important;
    border-radius: 26px !important;
  }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-field,
  html body.creek-rounded-ui #quickSearch.creek-search-panel .btn.btn-search {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .return-location-field {
    display: none !important;
  }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-type-field {
    max-width: none;
  }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-types button {
    padding-inline: 4px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-type-field {
    border-radius: 26px !important;
  }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* A compact, location-first mobile search with one swipeable category row. */
@media (max-width:820px) {
  html body .restored-search:has(.creek-search-panel) .search-intro { margin-bottom:12px!important; }
  html body.creek-rounded-ui #quickSearch.creek-search-panel { padding:10px!important;gap:8px!important;border-radius:24px!important; }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-field { min-height:68px!important;padding:10px 14px!important;border-radius:18px!important;gap:2px!important; }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-type-field { min-height:48px!important;padding:4px!important;border-radius:999px!important;overflow:hidden!important; }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-types { display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important; }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-categories { display:flex!important;flex-wrap:nowrap!important;position:relative;gap:4px!important;min-width:0;overflow-x:auto!important;overscroll-behavior-x:contain;scrollbar-width:none; }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-categories::-webkit-scrollbar { display:none; }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-vehicle-types button { flex:0 0 auto!important;min-height:44px!important;padding:10px 16px!important;font-size:14px!important; }
  html body.creek-rounded-ui #quickSearch.creek-search-panel .btn.btn-search { min-height:50px!important;padding:12px 20px!important; }
}

/* Give location and time selectors one shared arrow alignment on mobile. */
@layer creek-control-focus {
@media (max-width:820px) {
  html body.creek-rounded-ui #quickSearch.creek-search-panel .search-field select:is(#pickupLocation,#returnLocation,#pickupTime,#returnTime) {
    -webkit-appearance:none!important;
    appearance:none!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23101419' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 7 4-4 4 4M6 13l4 4 4-4'/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important;
    background-position:right 0 center!important;
    background-size:18px 18px!important;
    padding-right:26px!important;
    box-sizing:border-box!important;
  }
}
}

