/* Limme - booking steps bar (/transport_booking/) - 2026-07-14
   The plugin positions the step labels absolutely; the site CSS had pushed them
   to top:80px, which dropped them out of the bar and behind the white card.
   Labels now sit in normal flow under each circle. RTL-safe. */

div.mptbm_transport_search_area .mpTabsNext .tabListsNext {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: auto;
  min-height: 0;
  padding: 30px 24px 26px;
  background-color: #f5f6f8;
  border-radius: 12px 12px 0 0;
}

div.mptbm_transport_search_area .mpTabsNext .tabItemNext {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

/* --- numbered circle --- */
div.mptbm_transport_search_area .mpTabsNext .tabItemNext h4.circleIcon {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0 !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1;
  background-color: #ffffff;
  color: #a9a9a9;
  border: 2px solid #e0e3e8;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}

/* current step */
div.mptbm_transport_search_area .mpTabsNext .tabItemNext.active h4.circleIcon {
  background-color: #e2b756;
  border-color: #e2b756;
  color: #ffffff;
  font-size: 18px !important;
  font-weight: 600 !important;
  box-shadow: 0 0 0 5px rgba(226, 183, 86, .18);
}

/* completed step - the plugin swaps the number for a check and adds .success */
div.mptbm_transport_search_area .mpTabsNext .tabItemNext h4.circleIcon.success,
div.mptbm_transport_search_area .mpTabsNext .tabItemNext.active h4.circleIcon.success {
  background-color: #152c5b;
  border-color: #152c5b;
  color: #ffffff;
  box-shadow: none;
  font-size: 15px !important;
}

/* --- step label: normal flow, centred under the circle --- */
div.mptbm_transport_search_area .mpTabsNext .tabItemNext h6.circleTitle {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  margin: 0 !important;
  padding: 0 6px;
  border-radius: 0;
  text-align: center;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.35;
  color: #a9a9a9;
  text-transform: none;
  transition: color .25s ease;
}

div.mptbm_transport_search_area .mpTabsNext .tabItemNext.active h6.circleTitle,
div.mptbm_transport_search_area .mpTabsNext .tabItemNext h6.circleTitle.success {
  color: #152c5b !important;
  font-weight: 600 !important;
}

/* --- connector line between circles --- */
/* kill the plugin's line: it is anchored to the item, not the circle, so it overshoots */
div.mptbm_transport_search_area .mpTabsNext .tabItemNext [class*="circleIcon"]::after {
  content: none;
}

/* draw it from each circle towards the next one (logical props => correct in RTL) */
div.mptbm_transport_search_area .mpTabsNext .tabItemNext::after {
  content: "";
  position: absolute;
  top: 21px;
  height: 2px;
  width: calc(100% - 44px);
  inset-inline-end: calc(-50% + 22px);
  background-color: #e0e3e8;
  z-index: 0;
  transition: background-color .25s ease;
}

div.mptbm_transport_search_area .mpTabsNext .tabItemNext:last-child::after {
  content: none;
}

/* line turns gold once the step behind it is done */
div.mptbm_transport_search_area .mpTabsNext .tabItemNext:has(h4.circleIcon.success)::after {
  background-color: #e2b756;
}

/* --- mobile --- */
@media (max-width: 767px) {
  div.mptbm_transport_search_area .mpTabsNext .tabListsNext {
    padding: 22px 10px 18px;
  }
  div.mptbm_transport_search_area .mpTabsNext .tabItemNext {
    gap: 9px;
  }
  div.mptbm_transport_search_area .mpTabsNext .tabItemNext h4.circleIcon {
    width: 36px;
    height: 36px;
    font-size: 15px !important;
  }
  div.mptbm_transport_search_area .mpTabsNext .tabItemNext h6.circleTitle {
    font-size: 13px !important;
    padding: 0 2px;
  }
  div.mptbm_transport_search_area .mpTabsNext .tabItemNext::after {
    top: 17px;
    width: calc(100% - 36px);
    inset-inline-end: calc(-50% + 18px);
  }
}
