.homeSearchComposer {
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(28, 62, 94, 0.11);
  margin: 0;
  padding: 10px 14px 8px;
  text-align: left;
}

#booking .homeSearchComposer:not(.homeSearchReady) {
  visibility: hidden;
}

#booking.homeSearchSource {
  display: none;
}

.homeSearchComposer .formGrid {
  align-items: end;
  display: grid;
  gap: 0;
  grid-template-areas:
    "location pickup return action"
    "secondary secondary secondary secondary"
    "error error error error";
  grid-template-columns: minmax(180px, 1.55fr) minmax(187px, 1.68fr) minmax(187px, 1.68fr) minmax(110px, 0.9fr);
}

.homeSearchComposer label,
.homeSearchComposer #homePickupQuestion,
.homeSearchDateTimeLabel {
  color: #526174;
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 2px;
}

.heroTextWrap > p {
  color: #526174;
  font-weight: 400;
  line-height: 1.55;
}

.heroAnchors {
  color: #526174;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  gap: 8px 18px;
  line-height: 1.4;
}

.heroAnchors span {
  align-items: center;
  display: inline-flex;
}

.homeSearchComposer select,
.homeSearchComposer input[type="text"],
.homeSearchValueButton,
.homeLocationPickerButton {
  background: #fff;
  border: 1px solid #d5e1eb;
  border-radius: 10px;
  color: #111827;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 0 10px;
  width: 100%;
}

.homeSearchBarField {
  min-width: 0;
  padding: 0 13px;
}

.homeSearchControlLabel {
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.homeSearchDateTimeGroup {
  border-left: 1px solid #e6edf3;
  min-width: 0;
  padding: 0 13px;
}

.homeSearchDateTimeControls {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(82px, 0.68fr);
}

.homeSearchDateTimeControls .homeSearchBarField { padding: 0; }
.homeSearchDateTimeControls .homeSearchBarField > select { margin-top: 0; }
.homeSearchDateTimeControls .homeSearchPickupDate,
.homeSearchDateTimeControls .homeSearchReturnDate { padding-right: 13px; }
.homeSearchDateTimeControls .homeSearchPickupTime,
.homeSearchDateTimeControls .homeSearchReturnTime {
  border-left: 1px solid #e6edf3;
  padding-left: 13px;
}

.homeSearchBarField > select,
.homeSearchBarField > .homeSearchValueButton {
  background: transparent;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding-bottom: 0;
  padding-left: 0;
  padding-top: 0;
}

.homeSearchComposer select:focus-visible,
.homeSearchComposer input[type="text"]:focus-visible,
.homeSearchValueButton:focus-visible,
.homeLocationPickerButton:focus-visible {
  border-color: #a9c4da;
  box-shadow: 0 0 0 3px rgba(92, 134, 173, 0.1);
  outline: none;
}

.homeSearchBarField > select:focus-visible,
.homeSearchBarField > .homeSearchValueButton:focus-visible,
.homeSearchLocation .homeLocationPickerButton:focus-visible {
  background: #f5f9fc;
  box-shadow: 0 0 0 2px rgba(92, 134, 173, 0.16);
}

.homeSearchComposer option { font-weight: 400; }

.homeLocationPicker {
  min-width: 0;
  position: relative;
}

.homeLocationPickerButton {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  text-align: left;
}

.homeSearchLocation .homeLocationPickerButton,
.homeReturnLocationControl .homeLocationPickerButton {
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding-left: 0;
}

.homeLocationPickerButton:hover,
.homeLocationPickerButton[aria-expanded="true"] {
  background: #f5f9fc;
}

.homeLocationPickerValue {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homeLocationPickerValue.placeholder { color: #111827; }

.homeLocationPickerChevron {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  flex: 0 0 auto;
  height: 7px;
  margin: -4px 3px 0 0;
  transform: rotate(45deg);
  transition: transform 150ms ease;
  width: 7px;
}

.homeLocationPicker.open .homeLocationPickerChevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.homeLocationPickerListbox {
  background: #fff;
  border: 1px solid #cbd9e5;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(28, 62, 94, 0.16);
  left: 0;
  max-height: 276px;
  overflow-y: auto;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.homeLocationPickerListbox:focus { outline: none; }

.homeLocationPickerOption {
  align-items: center;
  border-radius: 8px;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  padding: 8px 10px;
}

.homeLocationPickerOption.active { background: #eef5fb; }
.homeLocationPickerOption[aria-selected="true"] { color: var(--bago-blue-dark); font-weight: 700; }
.homeLocationPickerOption[aria-selected="true"]:after { content: "✓"; margin-left: auto; }

.homeSearchValueButton { cursor: pointer; text-align: left; }
.homeSearchValueButton:hover,
.homeSearchValueButton[aria-expanded="true"] { background: #f5f9fc; }
.homeSearchValueButton strong { display: block; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.homeSearchLocation { grid-area: location; padding-left: 0; }
.homeSearchPickupGroup { grid-area: pickup; }
.homeSearchReturnGroup { grid-area: return; }
.homeSearchAction { border-left: 1px solid #e6edf3; grid-area: action; padding-left: 14px; }

.homeSearchAction .btn {
  margin-top: 0;
  min-height: 44px;
  padding-left: 12px;
  padding-right: 12px;
  width: 100%;
}

.homeSearchSecondary {
  grid-area: secondary;
  margin-top: 2px;
  min-width: 0;
}

.homeDifferentReturnToggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--bago-blue-dark);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  margin: 0;
  min-height: 27px;
  padding: 2px 3px;
  text-align: left;
}

.homeDifferentReturnToggle:hover { color: var(--bago-blue); }
.homeDifferentReturnToggle:focus-visible { border-radius: 7px; outline: 3px solid rgba(92, 134, 173, 0.2); outline-offset: 2px; }
.homeDifferentReturnToggle.active { color: #334155; }

.homeSearchComposer .homeLocationExtras,
.homeSearchComposer .homeAddressFields {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 4px;
}

.homeSearchComposer .homeLocationExtras {
  border-top: 1px solid #e6edf3;
  grid-template-columns: 1fr;
  padding: 8px 3px 2px;
}

.homeSearchComposer .homeLocationExtras[hidden],
.homeSearchComposer .homeAddressFields[hidden],
.homeSearchComposer label[hidden],
.homeSearchComposer .calcBox {
  display: none !important;
}

.homeSearchComposer .homeLocality,
.homeSearchComposer .homeAddressSuggestions,
.homeSearchComposer .full {
  grid-column: 1 / -1;
}

.homeSearchError:empty { display: none; }
.homeSearchError { grid-area: error; }

.bookingPanel .locationField { order: 1; }
.bookingPanel .publicSearchDates { order: 2; }
.bookingPanel .bookingBottomActions { order: 3; }

.bookingPanel .publicSearchDates .dateRangeField {
  min-height: 88px;
}

@media (min-width: 1025px) {
  .heroSplit {
    margin-top: 0;
    padding-top: 48px;
  }
  .heroSplitInner {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    height: 520px;
    min-height: 520px;
    position: relative;
  }
  .heroTextCol { align-items: flex-start; }
  .heroTextWrap {
    padding-bottom: 110px;
    padding-top: 0;
  }
  .heroTextWrap h1 {
    font-size: clamp(50px, 4.2vw, 64px);
  }
  .heroSplitInner > .homeSearchComposer {
    bottom: -20px;
    left: 24px;
    position: absolute;
    right: 24px;
    z-index: 6;
  }
  .heroSplitInner.homeReturnExpanded { height: 620px; min-height: 620px; }
}

@media (max-width: 1024px) {
  .heroSplitInner { grid-template-columns: minmax(0, 1fr); }
  .heroTextCol { order: 1; }
  .heroImageCol { height: 300px; max-height: 300px; order: 2; }
  .heroSplitInner > .homeSearchComposer { margin: -28px 24px 24px; order: 3; z-index: 6; }
  .heroTextWrap { padding-bottom: 24px; padding-top: 28px; }
}

@media (min-width: 700px) and (max-width: 1199px) {
  .homeSearchComposer .formGrid {
    align-items: stretch;
    grid-template-areas:
      "location location"
      "pickup return"
      "secondary action"
      "error error";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .homeSearchLocation { border-bottom: 1px solid #e6edf3; padding: 0 0 8px; }
  .homeSearchPickupGroup { border-left: 0; padding: 9px 13px 0 0; }
  .homeSearchReturnGroup { border-left: 1px solid #e6edf3; padding: 9px 0 0 13px; }
  .homeSearchComposer .homeSearchSecondary { border-top: 1px solid #e6edf3; grid-column: 1; margin-top: 8px; padding-top: 5px; }
  .homeSearchAction { align-items: flex-end; border-left: 0; border-top: 1px solid #e6edf3; display: flex; grid-column: 2; margin-top: 8px; padding: 8px 0 0 13px; }
  .homeSearchComposer.homeReturnExpanded .formGrid {
    grid-template-areas:
      "location location"
      "pickup return"
      "secondary secondary"
      "action action"
      "error error";
  }
  .homeSearchComposer.homeReturnExpanded .homeSearchSecondary { grid-column: 1 / -1; }
  .homeSearchComposer.homeReturnExpanded .homeSearchAction { padding-left: 0; }
}

@media (max-width: 699px) {
  .heroTextWrap { padding: 24px 20px 18px; }
  .heroTextWrap h1 { font-size: 43px; margin-bottom: 14px; }
  .heroTextWrap > p { font-size: 16px; line-height: 1.48; }
  .heroSplitInner > .homeSearchComposer { border-radius: 17px; margin: -24px 20px 24px; padding: 9px 10px 8px; }
  .homeSearchComposer .formGrid { grid-template-columns: minmax(0, 1.35fr) minmax(88px, 0.65fr); }
  .homeSearchComposer .formGrid {
    grid-template-areas:
      "location location"
      "pickup pickup"
      "return return"
      "secondary secondary"
      "action action"
      "error error";
  }
  .homeSearchComposer label,
  .homeSearchComposer #homePickupQuestion,
  .homeSearchDateTimeLabel { font-size: 11px; }
  .homeSearchBarField { padding: 9px 10px 7px; }
  .homeSearchLocation { border-bottom: 1px solid #e6edf3; grid-column: 1 / -1; order: 1; padding-left: 0; padding-right: 0; padding-top: 0; }
  .homeSearchDateTimeGroup { border-left: 0; grid-column: 1 / -1; padding: 9px 0 7px; }
  .homeSearchPickupGroup { order: 2; }
  .homeSearchReturnGroup { border-top: 1px solid #e6edf3; order: 3; }
  .homeSearchSecondary { border-top: 1px solid #e6edf3; grid-column: 1 / -1; margin-top: 0; order: 4; padding-top: 4px; }
  .homeSearchAction { border-left: 0; grid-column: 1 / -1; order: 5; padding-left: 0; padding-top: 6px; }
  .homeSearchError { order: 6; }
  .homeSearchComposer select,
  .homeSearchComposer input[type="text"],
  .homeSearchValueButton,
  .homeLocationPickerButton,
  .homeSearchAction .btn { min-height: 44px; }
  .homeDifferentReturnToggle { min-height: 32px; }
  .homeSearchComposer .homeLocationExtras,
  .homeSearchComposer .homeAddressFields { grid-template-columns: 1fr; }
  .homeSearchComposer .homeLocationExtras > *,
  .homeSearchComposer .homeAddressFields > * { grid-column: 1; }
  .heroImageCol { height: 210px; max-height: 210px; }
}

@media (max-width: 359px) {
  .heroTextWrap { padding-left: 16px; padding-right: 16px; }
  .heroTextWrap h1 { font-size: 38px; }
  .heroSplitInner > .homeSearchComposer { margin-left: 16px; margin-right: 16px; }
}

/* Stage 19.3 transparent RAV4 hero composition */
.heroSplit {
  background: linear-gradient(135deg, #fbfdff 0%, #f4f8fc 58%, #eef5fa 100%);
}

.heroSplitInner,
.heroTextCol,
.heroImageCol {
  background: transparent;
}

.heroImageCol {
  align-items: center;
  display: flex;
  isolation: isolate;
  justify-content: center;
  overflow: hidden;
}

.heroImageCol:before {
  background: radial-gradient(ellipse at center, rgba(172, 205, 230, 0.32), rgba(226, 238, 247, 0) 70%);
  border-radius: 50%;
  display: block;
  inset: 10% 3% 15%;
  width: auto;
  z-index: 0;
}

.heroImageCol:after {
  background: radial-gradient(ellipse at center, rgba(24, 48, 68, 0.2), rgba(24, 48, 68, 0) 70%);
  bottom: 17%;
  content: "";
  height: 22px;
  left: 17%;
  position: absolute;
  right: 17%;
  z-index: 1;
}

.heroImageCol .heroVehiclePicture,
.heroImageCol .heroVehiclePicture img {
  height: 100%;
  width: 100%;
}

.heroImageCol .heroVehiclePicture {
  display: block;
  position: relative;
  z-index: 2;
}

.heroImageCol .heroVehiclePicture img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: 18px 10px 44px;
  transform: none;
}

@media (max-width: 1024px) {
  .heroImageCol .heroVehiclePicture,
  .heroImageCol .heroVehiclePicture img {
    height: 100%;
  }
  .heroImageCol .heroVehiclePicture img {
    aspect-ratio: auto;
    padding: 8px 24px 30px;
  }
  .heroImageCol:after { bottom: 13%; }
}

@media (max-width: 699px) {
  .heroImageCol .heroVehiclePicture img { padding: 4px 16px 22px; }
  .heroImageCol:before { inset: 3% 0 9%; }
  .heroImageCol:after {
    bottom: 10%;
    left: 13%;
    right: 13%;
  }
}
