/* VIP DESK PRO V8.4.3 — Google Maps-style route entry (visual-only patch) */

/* Override old high-specificity wizard grid rules so the heading and route fields
   always use the full available width, one section below the other. */
#bookingWizard .step.unified-route-step[data-step="1"].active {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  width: 100% !important;
  max-width: none !important;
}

#bookingWizard .unified-route-step .route-entry-heading {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 22px !important;
}

#bookingWizard .unified-route-step .route-entry-heading .hint {
  max-width: 100% !important;
}

/* One clean Google Maps-style route planner panel. */
#bookingWizard .unified-route-step .location-pair-grid {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  gap: 0 !important;
  padding: 12px 14px !important;
  overflow: visible !important;
  border: 1px solid #d9dde3 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .07) !important;
}

#bookingWizard .unified-route-step .location-field-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 34px minmax(125px, 170px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px 8px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#bookingWizard .unified-route-step .origin-field-card {
  padding-bottom: 18px !important;
  border-bottom: 1px solid #eceff2 !important;
}

#bookingWizard .unified-route-step .destination-field-card {
  padding-top: 18px !important;
}

#bookingWizard .unified-route-step .location-field-card:focus-within {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Start circle and destination pin, matching the familiar Google Maps route UI. */
#bookingWizard .unified-route-step .location-field-card::before {
  content: "";
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  z-index: 2;
  box-sizing: border-box;
}

#bookingWizard .unified-route-step .origin-field-card::before {
  width: 14px;
  height: 14px;
  border: 3px solid #202124;
  border-radius: 50%;
  background: #fff;
}

#bookingWizard .unified-route-step .destination-field-card::before {
  width: 24px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='28' viewBox='0 0 24 28'%3E%3Cpath fill='%23d93025' d='M12 0C5.93 0 1 4.93 1 11c0 8.25 11 17 11 17s11-8.75 11-17C23 4.93 18.07 0 12 0Z'/%3E%3Ccircle cx='12' cy='11' r='4.1' fill='white'/%3E%3C/svg%3E");
}

/* Dotted connector between the two endpoint markers. */
#bookingWizard .unified-route-step .origin-field-card::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 43px;
  bottom: -22px;
  width: 2px;
  z-index: 1;
  background: repeating-linear-gradient(to bottom, #9aa0a6 0 3px, transparent 3px 7px);
  pointer-events: none;
}

#bookingWizard .unified-route-step .location-field-heading {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 54px !important;
  padding: 0 !important;
}

#bookingWizard .unified-route-step .location-map-label {
  display: block !important;
  margin: 0 0 5px !important;
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: .16em !important;
  color: #9a7131 !important;
}

#bookingWizard .unified-route-step .location-field-heading h3 {
  margin: 0 !important;
  font-size: clamp(1.35rem, 2vw, 1.8rem) !important;
  line-height: 1.02 !important;
  font-weight: 820 !important;
  letter-spacing: -.04em !important;
  color: #17181b !important;
}

#bookingWizard .unified-route-step .location-field-control {
  grid-column: 3 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
}

#bookingWizard .unified-route-step .location-field-control > input:not([type="hidden"]) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 13px !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 620 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#bookingWizard .unified-route-step .location-field-control .places-results {
  position: relative !important;
  z-index: 6 !important;
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  max-height: 270px !important;
  margin: 9px 0 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#bookingWizard .unified-route-step .location-field-control .places-results:empty {
  display: none !important;
}

#bookingWizard .unified-route-step .location-field-control .places-results button,
#bookingWizard .unified-route-step .location-field-control .place-selected,
#bookingWizard .unified-route-step .location-field-control .place-result {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* The endpoint markers replace the old central arrow. */
#bookingWizard .unified-route-step .route-direction-mark {
  display: none !important;
}

#bookingWizard .unified-route-step .route-calculation-panel {
  width: 100% !important;
  max-width: none !important;
  margin-top: 18px !important;
}

@media (max-width: 760px) {
  #bookingWizard .unified-route-step .location-pair-grid {
    padding: 10px 9px !important;
    border-radius: 18px !important;
  }

  #bookingWizard .unified-route-step .location-field-card {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 7px 12px !important;
    padding: 12px 7px !important;
  }

  #bookingWizard .unified-route-step .origin-field-card {
    padding-bottom: 16px !important;
  }

  #bookingWizard .unified-route-step .destination-field-card {
    padding-top: 16px !important;
  }

  #bookingWizard .unified-route-step .location-field-card::before {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
    margin-top: 10px;
  }

  #bookingWizard .unified-route-step .origin-field-card::after {
    left: 21px;
    top: 42px;
    bottom: -20px;
  }

  #bookingWizard .unified-route-step .location-field-heading {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 0 !important;
  }

  #bookingWizard .unified-route-step .location-field-control {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  #bookingWizard .unified-route-step .location-map-label {
    font-size: 8px !important;
  }

  #bookingWizard .unified-route-step .location-field-heading h3 {
    font-size: 1.5rem !important;
  }

  #bookingWizard .unified-route-step .location-field-control > input:not([type="hidden"]) {
    min-height: 50px !important;
    font-size: 15px !important;
  }
}
