.mmt-home #cabsPanel.thg-cab-home {
  position: relative;
  padding: 18px 14px 38px;
  overflow: visible;
}

.mmt-home .thg-cab-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 8px 18px;
}

.mmt-home .thg-cab-mode-row > p {
  margin: 0;
  color: #0c274c;
  font-size: .88rem;
  font-weight: 800;
  white-space: nowrap;
}

.mmt-home .thg-cab-mode-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 22px;
}

.mmt-home .thg-cab-mode-tabs label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #23324b;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.mmt-home .thg-cab-mode-tabs input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1488ef;
}

.mmt-home .thg-cab-mode-tabs label:has(input:checked) span {
  color: #071a39;
  font-weight: 900;
}

.mmt-home .thg-cab-mode-tabs b,
.mmt-home #cabAddStop b {
  padding: 3px 7px;
  border-radius: 5px;
  background: linear-gradient(135deg, #b754cc, #ea4c88);
  color: #fff;
  font-size: .64rem;
  text-transform: uppercase;
}

.mmt-home .thg-cab-search-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1.35fr .78fr .78fr .86fr .92fr;
  min-height: 136px;
  border: 1px solid #d3dce8;
  border-radius: 12px;
  background: #fff;
  overflow: visible;
}

.mmt-home .thg-cab-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 18px 22px;
  border-right: 1px solid #d9e0e9;
  background: transparent;
}

.mmt-home .thg-cab-field:last-child {
  border-right: 0;
}

.mmt-home .thg-cab-field > span {
  color: #45546b;
  font-size: .78rem;
  font-weight: 700;
}

.mmt-home .thg-cab-field input,
.mmt-home .thg-cab-field select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #061a3b;
  font: 900 clamp(1.25rem, 1.8vw, 2rem)/1.05 inherit;
}

.mmt-home .thg-cab-field input[type="date"],
.mmt-home .thg-cab-field input[type="time"],
.mmt-home .thg-cab-field select {
  font-size: clamp(1.05rem, 1.45vw, 1.55rem);
}

.mmt-home .thg-cab-field small {
  min-height: 18px;
  color: #68778f;
  font-size: .72rem;
  font-weight: 650;
}

.mmt-home .thg-cab-field:focus-within {
  background: #f0f7ff;
  box-shadow: inset 0 3px #2089ef;
}

.mmt-home .thg-cab-swap {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 22.5%;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid #e1e7ef;
  border-radius: 50%;
  background: #fff;
  color: #0f86ef;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(10, 39, 76, .12);
  cursor: pointer;
}

.mmt-home .thg-cab-options-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px 18px 0;
}

.mmt-home #cabAddStop {
  border: 0;
  background: transparent;
  color: #087ce2;
  font-weight: 850;
  cursor: pointer;
}

.mmt-home .thg-cab-compact-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.mmt-home .thg-cab-compact-option span {
  color: #53627a;
  font-size: .72rem;
  font-weight: 800;
}

.mmt-home .thg-cab-compact-option select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cfdae8;
  border-radius: 9px;
  background: #f7fbff;
  color: #10294d;
  font-weight: 750;
}

.mmt-home .thg-cab-access-note {
  display: flex;
  flex-direction: column;
  padding-left: 18px;
  border-left: 1px solid #dbe3ec;
}

.mmt-home .thg-cab-access-note strong {
  color: #0c755f;
  font-size: .76rem;
}

.mmt-home .thg-cab-access-note small {
  color: #68778f;
  font-size: .66rem;
}

.mmt-home .thg-cab-stop-row {
  display: flex;
  gap: 12px;
  align-items: end;
  margin: 8px 18px 0;
  padding: 12px;
  border: 1px solid #cfe2f6;
  border-radius: 10px;
  background: #f4f9ff;
}

.mmt-home .thg-cab-stop-row[hidden] {
  display: none !important;
}

.mmt-home .thg-cab-stop-row label {
  display: grid;
  flex: 1;
  gap: 5px;
  color: #304968;
  font-size: .72rem;
  font-weight: 800;
}

.mmt-home .thg-cab-stop-row input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #bfcde0;
  border-radius: 8px;
}

.mmt-home .thg-cab-stop-row button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #e69b9b;
  border-radius: 8px;
  background: #fff;
  color: #b22d2d;
  font-weight: 800;
}

.mmt-home .thg-cab-search-button {
  margin-top: 8px !important;
}

.mmt-home #cabsPanel.is-one-way #cabReturnField {
  opacity: .52;
  background: #f7f8fa;
}

.mmt-home #cabsPanel.is-local .thg-cab-swap {
  display: none;
}

@media (max-width: 1180px) {
  .mmt-home .thg-cab-search-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mmt-home .thg-cab-field {
    min-height: 108px;
    border-bottom: 1px solid #d9e0e9;
  }
  .mmt-home .thg-cab-swap {
    top: 27%;
    left: 33.33%;
  }
}

@media (max-width: 720px) {
  .mmt-home #cabsPanel.thg-cab-home {
    padding: 14px 10px 34px;
  }
  .mmt-home .thg-cab-mode-row {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 2px 12px;
  }
  .mmt-home .thg-cab-mode-row > p {
    display: none;
  }
  .mmt-home .thg-cab-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  .mmt-home .thg-cab-mode-tabs label {
    min-height: 42px;
    padding: 8px;
    border: 1px solid #d5dfec;
    border-radius: 9px;
    background: #fff;
    font-size: .72rem;
  }
  .mmt-home .thg-cab-mode-tabs label:has(input:checked) {
    border-color: #2c91ef;
    background: #edf6ff;
  }
  .mmt-home .thg-cab-search-grid {
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
  }
  .mmt-home .thg-cab-field {
    min-height: 94px;
    padding: 12px;
  }
  .mmt-home .thg-cab-location-field {
    grid-column: span 1;
  }
  .mmt-home .thg-cab-field input,
  .mmt-home .thg-cab-field select {
    height: 38px;
    font-size: 1.02rem !important;
  }
  .mmt-home .thg-cab-field small {
    font-size: .62rem;
  }
  .mmt-home .thg-cab-swap {
    top: 24%;
    left: 50%;
    width: 34px;
    height: 34px;
  }
  .mmt-home .thg-cab-options-row {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 12px 2px 0;
  }
  .mmt-home .thg-cab-compact-option {
    justify-content: space-between;
    margin-left: 0;
  }
  .mmt-home .thg-cab-access-note {
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid #dbe3ec;
  }
}
