/* ExplorePanda v610: shared route-picker and search-field language. */

/* Go dashboard route picker now matches the Taxi route card. */
#goDashboard .journey-route-form {
  position: relative;
  display: block;
  margin-top: 14px;
  padding: 6px 48px 6px 14px;
  overflow: visible;
  border: 1px solid #dfe9e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

#goDashboard .journey-route-point {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 70px;
  padding: 10px 0;
  border: 0;
  background: transparent;
}

#goDashboard .journey-route-origin {
  border-bottom: 1px solid #edf3f1;
}

#goDashboard .journey-route-point > i {
  position: relative;
  align-self: start;
  justify-self: center;
  width: 14px;
  height: 14px;
  margin-top: 17px;
  border: 0;
}

#goDashboard .journey-route-origin > i {
  border-radius: 50%;
  background: #45c0a5;
}

#goDashboard .journey-route-origin > i::after,
#goDashboard .journey-route-destination > i::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  content: "";
  background: #fff;
}

#goDashboard .journey-route-destination > i {
  border-radius: 50% 50% 50% 0;
  background: #f05a61;
  transform: rotate(-45deg);
}

#goDashboard .journey-route-destination > i::after {
  transform: rotate(45deg);
}

#goDashboard .journey-route-point span {
  align-self: center;
}

#goDashboard .journey-route-point small {
  display: block;
  color: #71807c;
  font-size: 12px;
}

#goDashboard .journey-route-point span > em {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #71807c;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#goDashboard .journey-route-point :is(strong, input) {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  margin-top: 3px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #15212f;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: none;
}

#goDashboard #goDestinationInput {
  display: none !important;
}

#goDashboard .journey-route-point > button {
  align-self: center;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: #f5faf8;
  color: #2f8d7a;
  font-size: 12px;
  font-weight: 800;
}

#goDashboard .journey-route-swap {
  position: absolute;
  top: calc(50% - 15px);
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  background: #f5faf8;
  color: #2f8d7a;
  font-size: 18px;
  font-weight: 800;
}

/* Flight and rail endpoints use the same vertical card and symbols. */
body.module-standalone-open #ticketBooking .ticket-route-row {
  position: relative;
  display: block;
  padding: 6px 48px 6px 14px;
  overflow: visible;
  border: 1px solid #dfe9e5;
  border-radius: 10px;
  background: #fff;
}

body.module-standalone-open #ticketBooking .ticket-city-button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 70px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.module-standalone-open #ticketBooking .ticket-city-button:first-child {
  border-bottom: 1px solid #edf3f1;
}

body.module-standalone-open #ticketBooking .ticket-city-button > em {
  position: relative;
  align-self: start;
  justify-self: center;
  width: 14px;
  height: 14px;
  margin-top: 17px;
}

body.module-standalone-open #ticketBooking .ticket-city-button > em.start {
  border-radius: 50%;
  background: #45c0a5;
}

body.module-standalone-open #ticketBooking .ticket-city-button > em.end {
  border-radius: 50% 50% 50% 0;
  background: #f05a61;
  transform: rotate(-45deg);
}

body.module-standalone-open #ticketBooking .ticket-city-button > em b {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

body.module-standalone-open #ticketBooking .ticket-city-button span {
  display: block;
  align-self: center;
}

body.module-standalone-open #ticketBooking .ticket-city-button small {
  display: block;
  color: #71807c;
  font-size: 12px;
  font-weight: 650;
}

body.module-standalone-open #ticketBooking .ticket-city-button strong {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.35;
}

body.module-standalone-open #ticketBooking .ticket-swap-button {
  position: absolute;
  top: calc(50% - 15px);
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  background: #f5faf8;
  color: #2f8d7a;
  font-size: 18px;
  box-shadow: none;
}

/* All non-map customer search fields reuse the Home/Map pill treatment. */
:is(
  #goOriginSearchInput,
  #toolCenterSearch,
  #serviceHubSearch,
  #ticketCitySearchInput,
  #cityDataSearch,
  #citySearch,
  #phoneCountrySearch
) {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 18px 0 46px !important;
  border: 1px solid #e2e8e6 !important;
  border-radius: 999px !important;
  outline: 0 !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687572' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 17px center !important;
  background-size: 20px 20px !important;
  color: #15212f !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  box-shadow: 0 5px 18px rgba(21, 33, 47, 0.07) !important;
  appearance: none;
  -webkit-appearance: none;
}

:is(
  #goOriginSearchInput,
  #toolCenterSearch,
  #serviceHubSearch,
  #ticketCitySearchInput,
  #cityDataSearch,
  #citySearch,
  #phoneCountrySearch
):focus {
  border-color: rgba(69, 192, 165, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(69, 192, 165, 0.13), 0 5px 18px rgba(21, 33, 47, 0.07) !important;
}

:is(
  #goOriginSearchInput,
  #toolCenterSearch,
  #serviceHubSearch,
  #ticketCitySearchInput,
  #cityDataSearch,
  #citySearch,
  #phoneCountrySearch
)::placeholder {
  color: #7b8582 !important;
  font-weight: 600 !important;
}

:is(.go-origin-search, .ticket-city-search, .city-data-search-row, .service-hub-search) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
}

:is(.go-origin-search, .ticket-city-search, .city-data-search-row, .service-hub-search) > button {
  min-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #45c0a5 !important;
  color: #08201c !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

@media (max-width: 380px) {
  :is(.go-origin-search, .ticket-city-search, .city-data-search-row, .service-hub-search) > button {
    padding-inline: 13px !important;
  }
}

/* Go uses one full-page endpoint picker for both origin and destination. */
#goDashboard .go-origin-sheet {
  box-sizing: border-box;
  width: min(100vw, 460px);
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  background: #fff;
}

#goDashboard .go-route-picker-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  min-height: calc(56px + env(safe-area-inset-top));
  margin: 0 -16px;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(21, 33, 47, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

#goDashboard .go-route-picker-head > button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #15212f;
}

#goDashboard .go-route-picker-head > button::before {
  display: none !important;
  content: none !important;
}

#goDashboard .go-route-picker-head svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#goDashboard .go-route-picker-head > strong {
  overflow: hidden;
  font-size: 17px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#goDashboard .go-origin-search {
  margin-top: 16px;
}

#goDashboard .go-origin-results,
#goDashboard .go-route-picker-options {
  overflow: hidden;
  border: 1px solid #e2e8e6;
  border-radius: 12px;
  background: #fff;
}

#goDashboard .go-route-picker-options[hidden] {
  display: none;
}

#goDashboard .go-origin-results button,
#goDashboard .go-origin-current {
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  min-height: 64px;
  margin: 0;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid rgba(21, 33, 47, 0.08);
  border-radius: 0;
}

#goDashboard .go-origin-results button:last-child,
#goDashboard .go-origin-current:last-child {
  border-bottom: 0;
}

#goDashboard .go-route-picker-options {
  margin-top: 12px;
}

/* The shared Taxi/Go endpoint picker uses the Home/Explore search language. */
body[data-active-page="explore"][data-route-planning="true"] .map-route-picker-search,
body[data-ride-standalone="true"] .map-route-picker-search {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 50px !important;
  gap: 0 !important;
  align-items: center !important;
  box-sizing: border-box !important;
  min-height: 60px !important;
  padding: 4px !important;
  overflow: hidden !important;
  margin: 12px 0 14px !important;
  border: 1px solid #e2e8e6 !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(21, 33, 47, 0.07) !important;
}

body[data-active-page="explore"][data-route-planning="true"] .map-route-picker-search:focus-within,
body[data-ride-standalone="true"] .map-route-picker-search:focus-within {
  border-color: rgba(69, 192, 165, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(69, 192, 165, 0.13), 0 5px 18px rgba(21, 33, 47, 0.07) !important;
}

body[data-active-page="explore"][data-route-planning="true"] .map-route-picker-search input,
body[data-ride-standalone="true"] .map-route-picker-search input {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 10px 0 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  outline: 0 !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687572' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 17px center !important;
  background-size: 20px 20px !important;
  color: #15212f !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

body[data-active-page="explore"][data-route-planning="true"] .map-route-picker-search input:focus,
body[data-ride-standalone="true"] .map-route-picker-search input:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}

body[data-active-page="explore"][data-route-planning="true"] .map-route-picker-search button,
body[data-ride-standalone="true"] .map-route-picker-search button {
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #45c0a5 !important;
  color: #08201c !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

body[data-active-page="explore"][data-route-planning="true"] .map-route-picker-search button::before,
body[data-ride-standalone="true"] .map-route-picker-search button::before {
  display: none !important;
  content: none !important;
}

body[data-active-page="explore"][data-route-planning="true"] .map-route-picker-search button svg,
body[data-ride-standalone="true"] .map-route-picker-search button svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  margin: auto !important;
  fill: none !important;
  stroke: #08201c !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
