.tt-page {
  background: #f4f6f8;
  color: #263849;
  font-family: Arial, sans-serif;
  min-height: 75vh;
}
.tt-inner {
  max-width: 1540px;
  margin: auto;
  padding-left: 22px;
  padding-right: 22px;
}
.tt-search-band {
  background: #fff;
  border-bottom: 1px solid #dce3eb;
  padding: 0 0 20px;
}
.tt-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.tt-eyebrow {
  color: #e97700;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.tt-intro h1 {
  font-size: 25px;
  line-height: 1.2;
  color: #103f72;
  font-weight: 700;
  margin: 3px 0 0;
}
.tt-intro p {
  margin: 0;
  color: #647486;
  font-size: 13px;
}
.tt-intro-options {
  display: grid;
  justify-items: end;
  gap: 9px;
}
.tt-preferences {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
}
.tt-preferences label {
  color: #536579;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}
.tt-preferences select {
  height: 34px;
  max-width: 125px;
  background: #fff;
  border: 1px solid #becddd;
  border-radius: 5px;
  color: #263849;
  padding: 0 6px;
  font-size: 12px;
}
.tt-preferences select:focus {
  outline: 2px solid #1a66b8;
  outline-offset: 1px;
}
.tt-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 42px minmax(180px, 1fr) 185px;
  gap: 10px;
  align-items: end;
}
.tt-city-field {
  min-width: 0;
  position: relative;
}
.tt-city-field label,
.tt-filters label {
  display: block;
  color: #536579;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tt-city-field input,
.tt-filters input,
.tt-filters select {
  width: 100%;
  height: 45px;
  border: 1px solid #becddd;
  background: #fff;
  border-radius: 5px;
  padding: 0 12px;
  color: #263849;
}
.tt-city-field input:focus,
.tt-filters input:focus,
.tt-filters select:focus {
  outline: 2px solid #1a66b8;
  outline-offset: 1px;
}
.tt-swap {
  height: 45px;
  width: 42px;
  background: #eef5fb;
  color: #0758ad;
  border: 1px solid #ccdae8;
  border-radius: 5px;
}
.tt-submit {
  height: 45px;
  border: 0;
  border-radius: 5px;
  background: #0b5cb2;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
  white-space: nowrap;
}
.tt-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}
.tt-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 280px;
  overflow: auto;
  background: white;
  border: 1px solid #c7d5e2;
  box-shadow: 0 9px 22px #19395124;
}
.tt-suggestions.open {
  display: block;
}
.tt-suggestions button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  text-align: left;
  background: white;
  border: 0;
  border-bottom: 1px solid #eef1f4;
  color: #254967;
}
.tt-suggestions button:hover,
.tt-suggestions button.active {
  background: #e8f3ff;
}
.tt-content {
  padding-top: 18px;
  padding-bottom: 35px;
}
.tt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}
.tt-modes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tt-modes button,
.tt-utility,
.tt-view-switch button {
  border: 1px solid #d8e1e9;
  background: #fff;
  color: #36526c;
  border-radius: 5px;
  min-height: 39px;
  padding: 7px 11px;
  font-size: 13px;
  white-space: nowrap;
}
.tt-modes button.active,
.tt-view-switch button.active {
  border-color: #0b5cb2;
  background: #e8f2fc;
  color: #074b96;
  font-weight: 700;
}
.tt-modes button i {
  margin-right: 5px;
}
.tt-toolbar-actions,
.tt-view-switch {
  display: flex;
  gap: 6px;
}
.tt-status {
  min-height: 27px;
  color: #566d81;
  font-size: 13px;
  padding: 3px 0 9px;
}
.tt-status.error {
  color: #a02929;
}
.tt-workspace {
  display: grid;
  grid-template-columns: 215px minmax(350px, 1fr) minmax(280px, 0.72fr);
  gap: 14px;
  align-items: start;
}
.tt-filters,
.tt-list-panel,
.tt-map-panel {
  background: #fff;
  border: 1px solid #dce5ed;
  min-width: 0;
}
.tt-filters {
  padding: 16px;
  display: grid;
  gap: 6px;
}
.tt-filters-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.tt-filters-title h2,
.tt-results-head h2 {
  font-size: 18px;
  color: #103f72;
  font-weight: 700;
  margin: 0;
}
.tt-filters-title button {
  border: 0;
  background: transparent;
  color: #0b5cb2;
  font-size: 12px;
}
.tt-filters label {
  margin-top: 11px;
}
.tt-filter-note {
  font-size: 12px;
  color: #647486;
  line-height: 1.4;
  margin: 12px 0 0;
}
.tt-list-panel {
  min-height: 500px;
  padding: 16px;
}
.tt-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e4ebf1;
  padding-bottom: 11px;
  margin-bottom: 12px;
}
.tt-results-head span {
  font-size: 12px;
  color: #6c7d8e;
}
.tt-results {
  display: grid;
  gap: 10px;
}
.tt-empty {
  padding: 85px 15px;
  text-align: center;
  color: #647486;
}
.tt-empty i {
  display: block;
  font-size: 30px;
  color: #a4bcd1;
  margin-bottom: 10px;
}
.tt-route {
  background: #fff;
  border: 1px solid #dce5ed;
  border-left: 4px solid #0b5cb2;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
}
.tt-route.bus {
  border-left-color: #13866f;
}
.tt-route.avia {
  border-left-color: #d47b10;
}
.tt-route.ferry {
  border-left-color: #0088a1;
}
.tt-route.charter {
  border-left-color: #815b95;
}
.tt-route.van {
  border-left-color: #528b35;
}
.tt-route-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.tt-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 3px;
  background: #e8f2fc;
  color: #08569b;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  text-transform: uppercase;
}
.tt-route h3 {
  font-size: 15px;
  color: #1b4264;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}
.tt-route-facts {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #5f7183;
  margin-top: 10px;
}
.tt-route-facts strong {
  color: #234c69;
}
.tt-departure-highlight {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf1f5;
}
.tt-departure-time,
.tt-departure-class {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.tt-departure-label {
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
  color: #718398;
}
.tt-departure-time time {
  color: #103f72;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tt-departure-class strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #eaf3fb;
  color: #145488;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.2;
}
.tt-time-unavailable {
  font-size: 12px;
  color: #697e91;
}
.tt-departure {
  font-size: 12px;
  color: #486179;
  margin-top: 8px;
  line-height: 1.4;
}
.tt-departure summary {
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  /* color: #0b5cb2; */
  color: #e97700;
  font-weight: 700;
}
.tt-departure-schedule {
  border-top: 1px solid #e7edf3;
  margin-top: 9px;
  padding-top: 2px;
}
.tt-departure-row {
  display: grid;
  grid-template-columns: minmax(95px, 120px) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f5;
}
.tt-departure-row strong {
  color: #314f69;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.tt-time-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}
.tt-time-list time {
  background: #edf4fa;
  color: #164f7c;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .tt-departure-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .tt-departure-time time {
    font-size: 21px;
  }
}
.tt-route-actions {
  border-left: 1px solid #e8edf2;
  padding-left: 13px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 9px;
}
.tt-route-actions strong {
  font-size: 15px;
  color: #e97700;
  text-align: right;
}
.tt-route-actions small {
  font-size: 11px;
  color: #748393;
  text-align: right;
}
.tt-route-actions a {
  background: #0b5cb2;
  color: #fff;
  padding: 9px 8px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.tt-route-actions a:hover {
  background: #074885;
  color: #fff;
}
.tt-route-actions button {
  background: transparent;
  border: 0;
  color: #0b5cb2;
  font-size: 12px;
  padding: 2px;
}
.tt-map-panel {
  position: sticky;
  top: 12px;
}
.tt-map-head {
  padding: 11px 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.tt-map-head strong {
  color: #103f72;
}
.tt-map-head span {
  font-size: 11px;
  color: #6b7e90;
  text-align: right;
}
#ttMap {
  height: 525px;
  background: #e3edf1;
}
.tt-map-credit {
  padding: 6px 10px;
  color: #66788b;
  font-size: 10px;
}
.tt-pin {
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 5px #1e344a88;
  background: #0b5cb2;
}
.tt-pin.destination {
  background: #dc473c;
}
@media (max-width: 1200px) {
  .tt-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .tt-map-panel {
    grid-column: 1/-1;
    position: static;
  }
  #ttMap {
    height: 370px;
  }
}
@media (max-width: 720px) {
  .tt-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
  .tt-search-band {
    padding: 14px 0;
  }
  .tt-intro {
    display: block;
    margin-bottom: 12px;
  }
  .tt-intro h1 {
    font-size: 21px;
  }
  .tt-intro p {
    margin-top: 5px;
  }
  .tt-intro-options {
    justify-items: start;
  }
  .tt-preferences {
    width: 100%;
  }
  .tt-search {
    grid-template-columns: minmax(0, 1fr) 39px;
    gap: 8px;
  }
  .tt-search .tt-city-field:first-child {
    grid-column: 1;
  }
  .tt-swap {
    grid-column: 2;
    grid-row: 1;
  }
  .tt-search .tt-city-field:nth-of-type(2) {
    grid-column: 1/-1;
  }
  .tt-submit {
    grid-column: 1/-1;
  }
  .tt-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .tt-modes {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }
  .tt-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .tt-workspace {
    display: flex;
    flex-direction: column;
  }
  .tt-filters {
    display: none;
    width: 100%;
  }
  .tt-filters.open {
    display: grid;
  }
  .tt-list-panel,
  .tt-map-panel {
    width: 100%;
  }
  .tt-list-panel {
    min-height: 300px;
    padding: 11px;
  }
  .tt-map-panel {
    display: none;
  }
  .tt-page.map-view .tt-list-panel {
    display: none;
  }
  .tt-page.map-view .tt-map-panel {
    display: block;
  }
  #ttMap {
    height: min(62vh, 530px);
  }
  .tt-route {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tt-route-actions {
    border-left: 0;
    border-top: 1px solid #e8edf2;
    padding: 10px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .tt-route-actions strong,
  .tt-route-actions small {
    text-align: left;
  }
  .tt-route-actions a {
    grid-column: 2;
    grid-row: 1/3;
  }
  .tt-route-actions button {
    grid-column: 1/-1;
    text-align: left;
  }
}
