/*
 * Airport Shuttle TR — Phase 1.3 / Search overlays
 * The desktop Places suggestions and datetime dialog are appended to <body>.
 * These styles intentionally live outside the nested home search form scope.
 * Only presentation is changed: no selectors, DOM structure or event handlers.
 */

/* Desktop address suggestions — calm list, not a stack of mini cards. */
body.ast-home-page > .autocomplete-portal.ast-autocomplete-list,
body.ast-home-page .ast-transfer-search--v5 .ast-autocomplete-list {
  border: 1px solid #d8e0e2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: 0 12px 25px rgba(17, 36, 47, .11) !important;
}
body.ast-home-page > .autocomplete-portal .list-group-item,
body.ast-home-page .ast-transfer-search--v5 .ast-autocomplete-list .list-group-item {
  min-height: 64px;
  padding: 12px 15px !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #edf0f0 !important;
  border-radius: 0 !important;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #243946;
  transition: background .15s ease;
}
body.ast-home-page > .autocomplete-portal .list-group-item:last-child,
body.ast-home-page .ast-transfer-search--v5 .ast-autocomplete-list .list-group-item:last-child {
  border-bottom: 0 !important;
}
body.ast-home-page > .autocomplete-portal .list-group-item:is(:hover, :focus-visible),
body.ast-home-page .ast-transfer-search--v5 .ast-autocomplete-list .list-group-item:is(:hover, :focus-visible) {
  background: #f3f6f6 !important;
  outline: none;
}
body.ast-home-page > .autocomplete-portal .ast-suggestion-icon,
body.ast-home-page .ast-transfer-search--v5 .ast-autocomplete-list .ast-suggestion-icon {
  flex: 0 0 31px;
  width: 31px !important;
  height: 31px !important;
  border-radius: 3px !important;
  background: #eef2f3 !important;
  color: #506b79 !important;
}
body.ast-home-page > .autocomplete-portal .ast-suggestion-body strong,
body.ast-home-page .ast-transfer-search--v5 .ast-autocomplete-list .ast-suggestion-body strong {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1c3442 !important;
  line-height: 1.4;
}
body.ast-home-page > .autocomplete-portal .ast-suggestion-body small,
body.ast-home-page > .autocomplete-portal .ast-suggestion-body em,
body.ast-home-page .ast-transfer-search--v5 .ast-autocomplete-list .ast-suggestion-body small,
body.ast-home-page .ast-transfer-search--v5 .ast-autocomplete-list .ast-suggestion-body em {
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: #71818b !important;
}

/* Date & time dialog: smaller window, quiet hierarchy, flat calendar. */
body.ast-home-page > .ast-dtp-overlay {
  background: rgba(13, 28, 38, .55) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  padding: 20px !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-modal {
  width: min(792px, 100%) !important;
  max-width: 792px !important;
  height: min(620px, 88dvh) !important;
  max-height: 88dvh !important;
  border: 1px solid #e1e5e7 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: 0 24px 64px rgba(8, 24, 35, .22) !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-header {
  min-height: 62px !important;
  padding: 14px 20px !important;
  background: #fff !important;
  border-bottom: 1px solid #e7ebed !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-title strong {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
  color: #1a3443 !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-title span {
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: #71818b !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border: 1px solid #e4e9ea !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #3b5462 !important;
  font-size: 20px !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-body {
  min-height: 0 !important;
  grid-template-columns: minmax(0,1fr) 152px !important;
  background: #fff !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-calendar {
  background: #fff !important;
  padding: 17px !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-months {
  gap: 20px 16px !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-month {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-month h4 {
  margin: 0 0 12px !important;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: -.01em !important;
  color: #253d4b !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-weekdays,
body.ast-home-page > .ast-dtp-overlay .ast-dtp-days {
  gap: 3px !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-weekdays span {
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #83919a !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-day,
body.ast-home-page > .ast-dtp-overlay .ast-dtp-day-spacer {
  min-height: 32px !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-day {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #324955 !important;
  box-shadow: none !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-day:is(:hover, :focus-visible):not(:disabled),
body.ast-home-page > .ast-dtp-overlay .ast-dtp-time-option:is(:hover, :focus-visible) {
  background: #eef3f4 !important;
  border-color: #d9e2e5 !important;
  color: #1b3b4d !important;
  outline: none;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-day.is-today {
  border-color: #b6a080 !important;
  background: #fbf9f5 !important;
  color: #715c41 !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-day.is-selected,
body.ast-home-page > .ast-dtp-overlay .ast-dtp-time-option.is-selected {
  color: #fff !important;
  background: #193747 !important;
  border-color: #193747 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-day.is-disabled,
body.ast-home-page > .ast-dtp-overlay .ast-dtp-day:disabled {
  background: transparent !important;
  color: #c3cdd1 !important;
  opacity: 1 !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-time {
  border-left: 1px solid #e7ebed !important;
  background: #fff !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-time-col {
  border-color: #e7ebed !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-time-col > strong {
  min-height: 38px !important;
  background: #fff !important;
  border-bottom: 1px solid #e7ebed !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #677b87 !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-time-list {
  gap: 3px !important;
  padding: 6px 4px !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-time-option {
  min-height: 32px !important;
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #334a58 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-footer {
  min-height: 62px !important;
  padding: 10px 19px !important;
  border-top: 1px solid #e7ebed !important;
  background: #fff !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-selected-text {
  color: #465e6b !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
body.ast-home-page > .ast-dtp-overlay .ast-dtp-apply {
  min-height: 40px !important;
  padding: 0 18px !important;
  border-radius: 4px !important;
  background: #193747 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Mobile address selection is full-screen by design. Only visual density changes. */
body.ast-home-page > .ast-address-picker-overlay,
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-modal {
  background: #f8f9f8 !important;
}
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-header {
  min-height: 60px;
  background: #fff !important;
  border-bottom: 1px solid #e4e8e9;
}
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-title strong {
  font-size: 16px;
  font-weight: 600;
  color: #213a49;
  letter-spacing: -.01em;
}
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-title span {
  font-size: 11px;
  font-weight: 400;
}
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-close {
  border-radius: 4px;
  box-shadow: none;
}
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-input {
  min-height: 50px;
  border-radius: 4px;
  box-shadow: none;
  font-weight: 500;
  font-size: 14px;
}
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-item {
  border-radius: 4px;
  box-shadow: none;
  border-color: #e3e8e9;
  padding: 12px;
  gap: 10px;
}
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-item-icon {
  border-radius: 3px;
  background: #eef2f3;
  color: #506a79;
}
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-item-body strong {
  font-size: 13px;
  font-weight: 600;
  color: #203947;
}
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-item-body em {
  font-weight: 500;
  color: #667b86;
}
body.ast-home-page > .ast-address-picker-overlay .ast-address-picker-empty {
  border-radius: 4px;
  background: #fff;
  font-weight: 400;
}

@media (max-width: 768px) {
  body.ast-home-page > .ast-dtp-overlay {
    padding: 0 !important;
    backdrop-filter: none !important;
  }
  body.ast-home-page > .ast-dtp-overlay .ast-dtp-modal {
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.ast-home-page > .ast-dtp-overlay .ast-dtp-body {
    grid-template-columns: minmax(0,1fr) 92px !important;
  }
  body.ast-home-page > .ast-dtp-overlay .ast-dtp-calendar {
    padding: 11px !important;
  }
  body.ast-home-page > .ast-dtp-overlay .ast-dtp-months {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  body.ast-home-page > .ast-dtp-overlay .ast-dtp-day {
    min-height: 36px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.ast-home-page > .autocomplete-portal .list-group-item {
    transition: none !important;
  }
}
