a {
  color: #1087BA;
  font-weight: 600;
  text-decoration: underline;
}

.vehicle-toggle-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex !important;
  overflow: visible;
}

.vehicle-toggle-pill::before {
  content: '';
  display: block;
  width: 100%;
  height: auto;
  position: absolute;
  background: white;
  box-shadow: 0px 3px 8px rgba(0,0,0,0.2);
  top: 0;
  bottom: 0;
  border-radius: 22px;
}

.pill-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #6B7280;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.pill-option span {
  display: inline-block;
  height: 44px;
  line-height: 44px;
  padding: 0 16px;
  background: white;
  min-width: 80px;
  text-align: center;
}

.pill-option:first-of-type span {
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
}

.pill-option:last-of-type span {
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
}

.pill-option:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  .pill-option:hover:not(.active) span {
    background: rgba(0, 0, 0, 0.05);
  }
}

.pill-option.active span {
  background: #26436F;
  color: white;
}

.pill-option.active::after {
  display: none;
}

@media (max-width: 768px) {
  .vehicle-toggle-pill {
    top: 4px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .pill-option {
    padding: 6px 0;
    font-size: 13px;
    min-width: 70px;
    min-height: 44px;
  }

  .pill-option span {
    padding: 0 12px;
    min-width: 56px;
    height: 34px;
    line-height: 34px;
  }

  .pill-option:first-of-type span {
    border-top-left-radius: 17px;
    border-bottom-left-radius: 17px;
  }

  .pill-option:last-of-type span {
    border-top-right-radius: 17px;
    border-bottom-right-radius: 17px;
  }

  .vehicle-toggle-pill::before {
    top: 8px;
    bottom: 8px;
    border-radius: 17px;
  }
}

.marker-outer {
  width: 72px;
  height: 72px;
  display: block;
  background: transparent;
  cursor: pointer;
  pointer-events: none;
  padding-top: 0;
}

.marker-outer.highlighted .marker-wrapper {
  background: rgba(17,135,186,0.7);

}

.marker-wrapper {
  width: 64px;
  height: 64px;
  overflow: visible;
  margin: 0 auto;
  border-radius: 32px;
  pointer-events: all;
}

.special-car .marker-wrapper:after {
  display: block;
  position: absolute;
  width: 24px;
  height: 24px;
  top: 8px;
  right: 10px;
  content: " ";
  visibility: visible;
  background-image: url(images/special-car.png);
  background-size: 24px 24px;
  background-repeat: no-repeat;
  z-index: 12;
}

.marker-title, .stop-popup {
  position: absolute;
  display: inline-block;
  z-index: var(--z-index-hovered-vehicle);
  width: auto;
  text-align: center;
  color: #3F4A5C;
  font-weight: 700;
  padding: 4px 10px;
  background: white;
  border-radius: 3px;
  box-shadow: 0px 1px 5px rgba(0,0,0,0.2);
  top: 0;
  opacity: 0;
  font-size: 16px;
  height: 24px;
  line-height: 24px;
  max-width: 10000px;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  word-wrap: nowrap;
  white-space: nowrap;
}

.marker-title {
  left: 50%;
  transform: translate3d(-50%,-24px,0);
}

.stop-popup {
  left: 0;
  display: none;
}

.hoverable .stop-popup {
  /* temporarily disabled */
  /*display: inline-block;*/
}

.hoverable .marker-outer:hover .marker-title {
  opacity: 1;
}

.hoverable .marker-outer:hover {
  z-index: var(--z-index-hovered-vehicle) !important;
}

.marker {
  background-size: cover;
  height: 100%;
  width: 100%;
  /*border: 2px solid #323232;
  background: #464646;
  border-radius: 50%;*/
  position: relative;
  z-index: 2;
}

.marker-icon {
  height: auto;
  color: white;
  position: absolute;
  top: calc(50% + 6px);
  left: 50%;
  transform: translate3d(-50%,-50%,0);
  z-index: 2;
  width: 60px;
  height: 60px;
  overflow: visible;
}

.car-icon-img {
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%,-50%,0);
}

.car-icon-img.retina {
  transform-origin: top left;
  transform: translate3d(-25%,-25%,0) scale(0.5);
}

/*.marker-icon svg {
  fill: currentColor;
}*/

html, body, .app {
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}

html.app-mode, body.app-mode, .app-mode .app {
  height: 100vh;
}

body {
  color: #3F4A5C;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 24px;
  background: #C9D7E4;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

body {
  -webkit-user-select: auto;
}

body p a {
  -webkit-tap-highlight-color: transparent;
}

.map-area {
  position: absolute;
  height: auto;
  top: 72px;
  bottom: 0;
  width: 100%;
  transform: translate3d(0,0,0);
}

#map {
  width: 100%;
  height: 100%;
  position: absolute;
  will-change: transform;
}

.nav {
  position: absolute;
  height: 72px;
  color: white;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  overflow: hidden;
  box-shadow: 0px 4px 16px rgba(0,0,0,0.16);
  z-index: 1500;
  transition: opacity 0.3s ease-in-out;
  transform: translate3d(0,0,0);
}

.nav-content {
  position: absolute;
  height: auto;
  width: auto;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transform: translate3d(0,0,0);
  will-change: opacity;
}

.nav, .dark-fix {
  background: #26436F;
}

.nav-content > * {
  display: inline-block;
  vertical-align: top;
}

a.info {
  height: 100%;
  line-height: 44px;
  font-weight: 700;
  background-image: url(images/i.svg);
  background-repeat: no-repeat;
  background-position: center;
  text-decoration: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  font-size: 16px;
}

a.logo:hover, a.info:hover {
  background-color: rgba(0,0,0,0.2);
}


a.logo {
  width: 72px;
  height: 72px;
  background-image: url(images/logo-color.svg);
  background-size: 64px 64px;
  background-position: center;
  background-repeat: no-repeat;
  margin-left: 0;
  position: relative;
  overflow: visible;
  margin-right: 17px;
}

a.logo:after {
  position: absolute;
  width: 1px;
  font-size: 0;
  color: transparent;
  overflow: hidden;
  width: 1px;
  height: auto;
  right: -1px;
  top: 16px;
  bottom: 16px;
  background-color: rgba(255,255,255,0.3);
  content: " ";
  display: block;
}

div.title {
  height: 100%;
}

div.title h1 {
  font-size: 19px;
  line-height: 24px;
  display: block;
  font-weight: 900;
  letter-spacing: 0.1px;
  margin-top: 14px;
}

div.title span {
  font-size: 14px;
  line-height: 18px;
  display: block;
  height: 18px;
  margin-top: 1px;
  font-weight: 600;
}

input.search {
  float: right;
  width: 36%;
  max-width: 560px;
  min-width: 310px;
  margin-left: 48px;
  height: 44px;
  border: 0;
  outline: none;
  background-color: rgba(0,0,0,0.3);
  color: white;
  border-radius: 5px;
  margin-right: 16px;
  margin-top: 14px;
  background-repeat: no-repeat;
  background-position: 16px center;
  background-image: url(images/search-white.svg);
  padding-left: 44px;
  font-size: 18px;
  line-height: 44px;
  display: none;
}

input.search::-webkit-input-placeholder {
  color: rgba(255,255,255,0.7);
}

.panels {
  width: 36%;
  left: 0;
  min-width: 396px;
  position: absolute;
  bottom: 36px;
  top: 72px;
  height: auto;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: 24px 24px 0 24px;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(0,0,0);
}

.panels-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translate3d(0,0,0);
  -webkit-overflow-scrolling: touch;
}

.panel {
  background: white;
  width: 100%;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.08);
  border-radius: 8px;
  position: relative;
  margin-bottom: 24px;
  height: 72px;
  transition: height 0.5s cubic-bezier(0.3,1,0.3,1);
}

.panel:last-of-type {
  margin-bottom: 0;
}

.panel.floating {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transform: translate3d(-100%,0,0);
  opacity: 0;
  transition: 0.6s cubic-bezier(0.3,1,0.3,1);
  pointer-events: none;
  background: white;
  z-index: 1500;
}

.panel.floating.car.active {
  height: 100%;
  max-height: 100%;
}

.panel.floating.active {
  transform: translate3d(0,0,0);
  pointer-events: auto;
}

.panel.active {
  height: calc(100% - 24px - 24px - 36px - 24px);
  max-height: calc(100% - 24px - 24px - 36px - 24px);;
  opacity: 1;
}

.panel.floating.active {
  height: 100%;
  max-height: 100%;
}

.panel .panel-header {
  height: 72px;
  width: 100%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: 0px 24px 0px 64px;
  background-repeat: no-repeat;
  background-position: 28px center;
  line-height: 72px;
  font-size: 21px;
  font-weight: bold;
  position: relative;
  cursor: pointer;
  background-size: 24px 24px;
}

.panel .panel-header .caret {
  position: absolute;
  width: 72px;
  height: 72px;
  display: block;
  content: " ";
  background-repeat: no-repeat;
  background-image: url(images/caret.svg);
  background-position: center;
  right: 8px;
  top: 0;
  cursor: pointer;
}

.panel.active .panel-header .caret {
  transform: translate3d(0,0,0) rotate(180deg);
}

.panel.streetcars .panel-header {
  background-image: url(images/streetcars.svg);
}

.panel.nearby .panel-header {
  background-image: url(images/nearby.svg);
  background-size: 22px 22px;
}

div.panel-content {
  height: auto;
  max-height: calc(100% - 72px);
  width: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: 0 24px;
}

.panel-top {
  display: none;
  overflow: visible;
}

.location-box {
  border-radius: 4px;
  margin: 0 0 24px 0;
  display: block;
  width: 100%;
  height: 48px;
  font-size: 16px;
  background: #F4F6F8;
  box-sizing: border-box;
  padding: 0 16px;
  position: relative;
  overflow: visible;
  font-weight: 600;
}

.location-box-inner {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  height: 100%;
  text-overflow: ellipsis;
}

.location-box .location-prefix {
  color: #737C90;
  margin-right: 6px;
  line-height: 24px;
  display: inline-block;
  margin-top: 12px;
}

.location-box .location-text {
  outline: none;
  display: inline-block;
  border: none;
  padding: 0;
  line-height: 24px;
  width: auto;
  margin-top: 12px;
  font-size: 16px;
  color: #484E57;
  text-shadow: rgba(0,0,0,0) 0px 0px 0px;
  background: transparent;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media and (-webkit-min-device-pixel-ratio:0) {
  .location-box .location-text {
    width: calc(100% - 90px);
    min-width: 220px;
  }
}

.location-box .location-text.is-current-location {
  color: #1087BA;
}

.location-box .location-text.force-redraw {
  text-shadow: none;
}

ul.location-results {
  width: 100%;
  display: block;
  position: absolute;
  top: 56px;
  left: 0;
  background: white;
  box-shadow: 0px 0px 32px rgba(255,255,255,0.4), 0px 2px 8px rgba(0,0,0,0.15);
  border-radius: 4px;
  z-index: 999;
  overflow: hidden;
}

ul.location-results li {
  width: 100%;
  display: block;
  border-top: 1px solid #ebebeb;
  height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
  white-space: nowrap;
  /* overflow: hidden;
  text-overflow: ellipsis; */
  -webkit-user-select: none;
  cursor: pointer;
}

ul.location-results li:hover {
  background: #f0f0f0;
}

ul.location-results li:first-of-type {
  border-top: none;
}

ul.location-results li span {
  width: auto;
  display: inline-block;
  font-size: 16px;
  line-height: 48px;
  height: 48px;
  color: #484E57;
  vertical-align: middle;
  font-weight: 500;
}

ul.location-results li.current-location-result span {
  color: #1087BA;
}

ul.location-results li span.item-title {
  font-weight: 700;
}

div.sticky-tabs {
  width: 100%;
  height: 54px;
  height: calc(54px + env(safe-area-inset-top));
  box-shadow: 0px 4px 18px rgba(0,0,0,0.06);
  background: white;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: 0 24px;
  will-change: transform;
  border-radius: 8px 8px 0 0;
  pointer-events: none;
  transition: box-shadow 0.2s ease-in-out;
  position: absolute;
  transform: translate3d(0,0,0);
  display: none;
}

ul.tabs {
  display: none;
  position: absolute;
  width: auto;
  height: 54px;
  top: 4px;
  left: 24px;
  margin: 0;
  padding: 0;
  list-style-type: none;
  white-space: nowrap;
  transition: opacity 0.45s cubic-bezier(0.3,1,0.3,1);
  z-index: 1451;
}

.panel-floating-header {
  z-index: 1450;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  background: white;
  border-radius: 6px 6px 0 0;
}

ul.tabs.disabled {
  opacity: 0;
  pointer-events: none;
}

div.sticky-tabs > ul.tabs {
  top: 0;
  top: env(safe-area-inset-top);
}

div.sticky-tabs > div.dark-fix {
  position: absolute;
  width: 100%;
  height: 0;
  height: env(safe-area-inset-top);
  top: 0;
  left: 0;
}

ul.tabs:after {
  width: 100%;
  position: absolute;
  content: " ";
  background-color: #ebebeb;
  height: 2px;
  bottom: 0;
  left: 0;
  z-index: 1;
}

div.sticky-tabs > ul.tabs:after {
  background-color: transparent;
}

ul.tabs > li {
  width: auto;
  height: 100%;
  display: inline-block;
  color: #31558C;
  text-align: center;
  text-transform: uppercase;
  margin: 0 24px 0 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  position: relative;
  overflow: visible
}

ul.tabs > li:last-of-type {
  margin-right: 0;
}

ul.tabs > li > span {
  display: inline-block;
  height: 100%;
  line-height: 54px;
  padding-left: 24px;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: left center;
  opacity: 0.7;
  transition: opacity 0.6s cubic-bezier(0.3,1,0.3,1);
  pointer-events: none;
}

ul.tabs > li:after {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  width: auto;
  bottom: 0;
  height: 3px;
  background-color: #31558C;
  content: " ";
  transform: translate3d(100%,0,0);
  transition: all 0.6s cubic-bezier(0.3,1,0.3,1);
  opacity: 0;
  z-index: 2;
}

ul.tabs > li:nth-child(2):after {
  transform: translate3d(-100%,0,0);
}

ul.tabs > li.selected:after {
  transform: translate3d(0,0,0);
  opacity: 1;
}

ul.tabs > li.selected > span {
  opacity: 1;
}

.tab-out-now span {
  background-image: url(images/out-blue.svg);
}

.tab-nearby span {
  background-image: url(images/nearby-blue.svg);
}

ul.card-grid, ul.card-list {
  display: block;
  width: 100%;
}

ul.card-grid > li.card {
  display: inline-block;
  width: calc(50% - 6px);
  margin-right: 12px;
  margin-bottom: 32px;
  vertical-align: top;
  pointer-events: all;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

ul.card-grid > li.loading-card {
  display: none;
}

ul.card-grid.loading-cards > li.loading-card {
  display: inline-block;
}

.is-searching ul.card-list {
  pointer-events: none;
  opacity: 0.4;
}

ul.card-list > li.prediction-card {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  margin-right: 12px;
  pointer-events: all;
  position: relative;
  vertical-align: top;
  width: calc(100% - 6px);
}

ul.card-list > li.prediction-card.loading-card {
  display: none;
}

ul.card-list.loading > li.prediction-card {
  display: none;
}

ul.card-list.loading > li.prediction-card.loading-card {
  display: flex;
}

li.prediction-card .left-content {
  align-items: center;
  display: flex;
}

li.prediction-card .info-container {
  display: flex;
  flex-direction: column;
  flex-shrink: 1;
  margin-left: 16px;
  margin-right: 16px;
  min-width: 110px;
}

li.prediction-card .time-container {
  align-items: center;
  display: flex;
  flex-direction: column;
}

li.prediction-card.loading-card .time-container {
  display: none;
}

li.prediction-card .direction-text {
  color: #484848;
  font-size: 16px;
  font-weight: bold;
  line-height: 28px;
  margin-left: 6px;
  display: inline-block;
}

li.prediction-card.loading-card .direction-text {
  background: #C9D0DB;
  width: 100px;
  height: 16px;
  margin: 4px 0 4px 3px;
}

li.prediction-card .stop-text {
  color: #484E57;
  font-size: 16px;
  font-weight: medium;
  line-height: 22px;
}

li.prediction-card.loading-card .stop-text {
  background: #C9D0DB;
  height: 16px;
  margin: 3px 0 3px 0;
}

li.prediction-card .vehicle-text {
  color: #7D838D;
  font-size: 16px;
  font-weight: medium;
  line-height: 22px;
}

li.prediction-card.loading-card .vehicle-text {
  background: #C9D0DB;
  height: 16px;
  margin: 3px 0 3px 0;
}

li.prediction-card .time-text {
  color: #1087BA;
  font-size: 28px;
  font-weight: 800;
  line-height: 100%;
}

li.prediction-card .unit-text {
  color: #484E57;
  font-size: 16px;
  font-weight: medium;
  line-height: 22px;
}

li.card .card-photo {
  background-color: #C9D0DB;
  border-radius: 4px;
  padding-top: 75%;
  background-size: cover;
  margin-bottom: 10px;
  pointer-events: none;
  /*transform-origin: 50% 50%;
  transform: translate3d(0,0,0);
  transition: all 0.25s cubic-bezier(0.4,1,0.4,1);*/
}

li.prediction-card .card-photo {
  background-color: #C9D0DB;
  background-size: cover;
  border-radius: 4px;
  flex-shrink: 0;
  height: 80px;
  pointer-events: none;
  width: 90px;
}

li.card {
  cursor: pointer;
}

li.card:hover:after {
  position: absolute;
  left: 0;
  right: 0;
  width: auto;
  height: auto;
  top: 0;
  padding-top: calc(75% - 8px);
  background-color: rgba(63,74,92,0);
  border-radius: 4px;
  content: " ";
  display: block;
  visibility: visible;
  border: 4px solid #1087BA;
  box-sizing: border-box;
}

li.card.loading-card {
  pointer-events: none !important;
}

ul.card-grid > li.card:nth-child(even) {
  margin-right: 0;
}

li.card .card-title, li.card .card-subtitle {
  font-size: 16px;
  font-weight: bold;
  line-height: 22px;
  margin-bottom: 2px;
  width: 100%;
  display: block;
  min-height: 22px;
}

li.card.loading-card .card-title, li.card.loading-card .card-subtitle {
  background: #C9D0DB;
}

li.card.loading-card .card-title {
  width: 75%;
}

li.card.loading-card .card-subtitle {
  width: 66%;
  margin-top: 6px;
  margin-bottom: 2px;
  min-height: 14px;
  line-height: 14px;
}

.loading-card .route-tag {
  background: #C9D0DB;
}

@keyframes shimmer {
    0%{
        transform: translate3d(-50%,0,0);
    }
    100%{
        transform: translate3d(0%,0,0);
    }
}

.loading-card:after {
  position: absolute;
  display: block;
  content: " ";
  width: 200%;
  top: 0;
  left: 0;
  animation-duration: 0.7s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: linear;
  background-color: transparent;
  background: linear-gradient(to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.15) 10%,
    rgba(255,255,255,0.5) 25%,
    rgba(255,255,255,0.15) 40%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.15) 60%,
    rgba(255,255,255,0.5) 75%,
    rgba(255,255,255,0.15) 90%,
    rgba(255,255,255,0) 100%);
    background-size: 100% 100%;
    height: 100%;
    overflow: hidden;
}

li.card .card-subtitle {
  font-weight: normal;
}

.card-route {
  line-height: 24px;
  display: block;
  width: 100%;
  min-height: 24px;
}

.route-tag {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  line-height: 24px;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  margin-right: 2px;
}

.route-f {
  background-color: #F27890;
  color: #fff;
}

.route-e {
  background-color: #05BEC8;
  color: #fff;
}

.route-ca {
  background-color: #9e5947; /* #FFD166 */
  color: #fff;
}

.route-ph {
  background-color: #dea52b;
  color: #fff;
}

.route-pm {
  background-color: #1e9f74;
  color: #fff;
}

.route-w {
  background-color: #337357;
  color: #fff;
}

div.nav-bar {
  width: 100%;
  height: 56px;
  background: #434343;
}

div.nav-bar.floating-nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: 0 16px;
  z-index: 1200;
  box-shadow: 0px 3px 12px rgba(0,0,0,0.15);
  height: 56px;
  height: calc(56px + env(safe-area-inset-top));
  padding-top: 0;
  padding-top: env(safe-area-inset-top);
}

div.nav-bar a.back-button {
  color: white;
  text-decoration: none;
  display: block;
  height: 56px;
  line-height: 56px;
  font-weight: 700;
  padding-left: 18px;
  position: relative;
}

div.nav-bar a.back-button svg {
  position: absolute;
  top: 19px;
  left: 0;
}

div.nav-bar a.back-button .back-button-arrow {
  stroke: #fff;
}

div.nav-bar span.nav-title {
  display: block;
  width: auto;
  height: 56px;
  line-height: 56px;
  color: white;
  font-weight: 700;
  position: absolute;
  left: 50%;
  transform: translate3d(-50%,0,0);
  top: 0;
  top: env(safe-area-inset-top);
}

.car-info-content {
  height: 100%;
  box-sizing: border-box;
  padding-top: 56px;
  overflow: scroll;
  background: white;
  border-radius: 12px;
}

.car-hero-photo {
  width: 100%;
  padding-top: 60%;
  background-color: #f9f9f9;
  background-size: cover;
  background-position: center;
}

.car-info-text {
  padding: 32px;
}

h2 {
  font-size: 28px;
  line-height: 32px;
  font-weight: bold;
}

h3 {
  margin-top: 24px;
  font-weight: 600;
}

p {
  padding: 6px 0;
}

.car-info-preview {
  width: 100%;
  background: white;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.3,1,0.3,1);
  white-space: nowrap;
  transform: translate3d(0,0,0);
  z-index: 1200;
}

.car-info-preview-inner {
  width: 100%;
  height: auto;
  position: relative;
}

.car-info-preview .car-preview-close {
  display: block;
  width: 48px;
  height: 48px;
  top: 6px;
  right: 6px;
  opacity: 0.75;
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgNi40MUwxNy41OSA1IDEyIDEwLjU5IDYuNDEgNSA1IDYuNDEgMTAuNTkgMTIgNSAxNy41OSA2LjQxIDE5IDEyIDEzLjQxIDE3LjU5IDE5IDE5IDE3LjU5IDEzLjQxIDEyeiIvPjxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz48L3N2Zz4=);
}

.car-info-preview .car-info-preview-content, .car-info-preview .car-thumbnail-area {
  display: inline-block;
  height: 110px;
  box-sizing: border-box;
  vertical-align: top;
  -moz-box-sizing: border-box;
}

.car-info-preview .car-thumbnail-area {
  width: 108px;
  padding-left: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.car-info-preview .car-thumbnail {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.car-info-row {
  width: 100%;
  height: 48px;
  background: #F4F4F4;
  display: block;
  pointer-events: all;
  padding-bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.car-info-preview .car-info-preview-content {
  padding-left: 12px;
  padding-right: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  width: calc(100% - 128px - 16px);
}

.car-preview-title {
  display: block;
  height: 24px;
  line-height: 24px;
  font-size: 17px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-info-preview p {
  font-size: 14px;
  line-height: 18px;
  padding: 4px 0;
  font-weight: 500;
}

.car-preview-direction {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-info-preview .route-tag {
  width: 24px;
  height: 24px;
  line-height: 24px;
}

.car-info-row .built-year {
  float: left;
  margin-left: 16px;
}

.car-info-row .built-year, .car-info-row .car-learn-more {
  display: block;
  height: 48px;
  line-height: 48px;
  font-size: 14px;
  width: auto;
  padding: 0 0 0 0;
}

.car-info-row .car-learn-more {
  float: right;
  text-align: right;
  margin-right: 16px;
  font-weight: 700;
  padding: 0 12px;
  line-height: 32px;
  position: relative;
  /*color: #3267B8;*/
  color: white;
  text-decoration: none;
  background-color: #3267B8;
  border-radius: 4px;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.08);
  margin-top: 9px;
  display: block;
  height: 32px;
  pointer-events: all;
  z-index: 1200;
}

.car-info-row .car-learn-more svg {
  position: absolute;
  top: 17px;
  right: 0;
  display: none;
}

.car-info-row .car-learn-more .learn-more-caret {
  stroke: #3267B8;
}


.car-loading {
}

.car-loading * {
  margin: 128px auto;
}

.marker-caption {
  color: #232323;
  /* width: 100%; */
  text-align: center;
  bottom: -10px;
  z-index: 4;
  position: absolute;
  display: block;
  /* height: 18px; */
  line-height: 18px;
  font-size: 14px;
  font-weight: bold;
  left: 50%;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* text-shadow: 0px -2px 0px white, 0px 2px 0px white, 2px 0px 0px white, -2px -2px 0px white, 2px 2px 0px white, -2px 2px 0px white; */
  background: white;
  height: 18px;
  border-radius: 10px;
  box-shadow: 0px 1.5px 3px rgba(0,0,0,0.15), 0px 3px 6px rgba(0,0,0,0.05);
  padding: 0 6px 2px 6px;
  transform: translate3d(-50%,0,0);
  white-space: nowrap;
}

.special-car .marker-caption {
  background: #51148D;
  color: white;
  fill: white;
}

.marker-caption .marker-arrow {
  width: 11px;
  height: 11px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 3px;
  transform-origin: center;
}

.marker-arrow.arrow-f #arrow-polygon {
  fill: #F27890;
}

.marker-arrow.arrow-e #arrow-polygon {
  fill: #05BEC8;
}

.marker-arrow.arrow-ca #arrow-polygon {
  fill: #9e5947;
}

.marker-arrow.arrow-ph #arrow-polygon {
  fill: #dea52b;
}

.marker-arrow.arrow-pm #arrow-polygon {
  fill: #1e9f74;
}

.photo-right.photo-small.photo-center {
  display: none;
}

.prediction-detail-panel-content {
  display: flex;
  flex-direction: column;
  margin-left: 24px;
  margin-right: 24px;
  max-height: 100%;
}

.prediction-detail-scrolling-section {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.prediction-detail-scrolling-section h3 {
  color: #7D838D;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12rem;
  line-height: 22px;
  margin-bottom: 12px;
  margin-top: 0px;
  text-transform: uppercase;
}

.prediction-detail-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 16px;
}

.prediction-detail-route {
  align-items: center;
  display: flex;
}

.prediction-detail-title {
  color: #3F4A5C;
  font-size: 18px;
  font-weight: 800;
  line-height: 48px;
  margin-left: 8px;
}

.done-button {
  font-size: 18px;
  font-weight: 500;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
}

.board-at-section {
  margin-bottom: 24px;
}

.board-at-row {
  display: flex;
  justify-content: space-between;
}

.stop-info {
  display: flex;
  padding-top: 12px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  height: 48px;
}

.stop-location-icon {
  background-image: url(images/place.svg);
  height: 24px;
  margin-right: 8px;
  width: 24px;
}

.prediction-detail-stop-title {
  color: #3F4A5C;
  font-size: 17px;
  font-weight: 800;
  line-height: 24px;
  padding: 0px;
}

.stop-directions-icon {
  background-image: url(images/directions.svg);
  background-size: 28px;
  background-repeat: no-repeat;
  background-position: center;
  height: 48px;
  margin-right: 0;
  width: 48px;
  display: block;
}

.vehicle-title-text {
  color: #3F4A5C;
  font-size: 16px;
  font-weight: 800;
}

.destination-text {
  color: #3F4A5C;
  font-size: 15px;
  font-weight: 500;
}

.empty-state {
  width: 100%;
  text-align: center;
}

.empty-state img {
  display: inline-block;
  width: 65%;
  max-width: 242px;
  height: auto;
  margin-bottom: 4px;
}

.empty-state p {
  display: inline-block;
  width: 100%;
  text-align: center;
  line-height: 24px;
  font-size: 17px;
}

.message-box {
  width: 100%;
  text-align: center;
  padding: 24px 0 48px 0;
}

.panel-content .nearby-empty-state, .panel-content .nearby-location-denied {
    display: none;
}

p strong {
  font-weight: 700;
}

.panel-content.is-empty .nearby-empty-state {
  display: block;
}

.panel-content.location-denied .nearby-location-denied {
  display: block;
}

.panel-content.location-denied ul.card-list {
  display: none;
}

.modal-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(31,44,66,0.8);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4,1,0.4,1);
}

.info-modal-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  transform: translate3d(0,320px,0);
  transition: all 0.5s cubic-bezier(0.4,1,0.4,1);
}

.modal-open .modal-wrap {
  opacity: 1;
  pointer-events: all;
}

.modal-open .info-modal-inner {
  transform: none;
}

.info-modal {
  width: 100%;
  max-width: 480px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
  position: absolute;
  top: 50%;
  transform: translate3d(-50%,-50%,0);
  left: 50%;
  text-align: center;
  padding: 88px 32px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.info-modal .info-heart {
  width: 124px;
  height: 114px;
}

.info-modal p {
  padding: 0;
  margin: 12px 0 0 0;
  font-size: 16px;
  line-height: 26px;
}

a.modal-close {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  background-image: url(images/close.svg);
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}


@media(min-width: 777px){
  .panel-content.is-empty {
    height: 100%;
    position: relative;
  }

  .panel-content.is-empty .empty-state {
    position: absolute;
    transform: translate3d(0,-50%,0);
    top: calc(50% - 24px);
    left: 48px;
    right: 48px;
    width: auto;
  }
}

@media(max-width: 776px) {
  .panel {
    box-shadow: none;
    display: none;
    margin-bottom: 0;
    background: transparent;
    display: block;
    transition: transform 0.6s cubic-bezier(0.3,1,0.3,1);
    position: absolute;
  }

  .panel:first-of-type {
    transform: translate3d(100%,0,0);
  }

  .panel:nth-of-type(2) {
    transform: translate3d(-100%,0,0);
  }

  .panel.floating {
    transform: translate3d(0,320px,0);
    opacity: 0;
  }

  .panel.floating.active {
    transform: translate3d(0,0,0);
    opacity: 1;
  }

  .panel .panel-header .caret {
    display: none;
  }

  /*.panel:last-of-type {
    transform: translate3d(-100%,0,0);
  }*/

  .panels-container {
    background: white;
    box-shadow: 0px -4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    transition: border-radius 0.2s ease-in-out, height 0.6s cubic-bezier(0.3,1,0.3,1);
  }

  .panels {
    position: absolute;
    width: 100%;
    min-width: none;
    padding-left: 0;
    padding-right: 0;
    height: 100%;
    top: 0;
    left: 0;
    overflow: scroll;
    padding-top: 108px;
  }

  .panel-top {
    width: 100%;
    /* Where the bottom offset on mobile is set */
    height: calc(100% - 72px);
    display: block;
  }

  .panel.active {
    height: auto;
    pointer-events: auto;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    display: block;
    transform: translate3d(0,0,0);
    transition: all 0.6s cubic-bezier(0.3,1,0.3,1);
    max-height: none;
  }

  div.panel-content {
    min-height: 370px;
    max-height: none;
  }

  .prediction-detail-scrolling-section {
    overflow: visible;
    max-height: none;
  }

  .prediction-detail-panel-content {
    max-height: none;
  }

  .panel.prediction-detail.floating.active {
    max-height: none;
    height: auto;
  }

  input.search {
    display: none;
  }


  .panel .panel-header, .panel.streetcars .panel-header, .panel.nearby .panel-header {
    font-size: 0;
    color: transparent;
    background-size: 0 0;
  }

  ul.tabs {
    display: block;
  }

  .sticky-header .active-panel-streetcars div.sticky-tabs,
  .sticky-header .active-panel-nearby div.sticky-tabs {
    pointer-events: auto;
    display: block;
  }

  .map-area {
    bottom: 0;
  }

  .upper-map-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    overflow: hidden;
    z-index: 1400;
  }

  .supports-clip-path .upper-map-area {
    display: block;
  }

  .upper-map-area-inner {
    display: block;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
  }

  .empty-state {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .empty-state img {
    max-width: 200px;
  }
}

@media(max-width: 480px) {
  .nav {
    height: 54px;
    height: calc(54px + env(safe-area-inset-top));
  }

  .nav-content {
    top: 0px;
    top: env(safe-area-inset-top);
  }

  a.feedback {
    height: 34px;
    line-height: 34px;
    font-size: 15px;
    padding: 0 14px;
    right: 12px;
  }

  a.logo {
    width: 56px;
    height: 54px;
    background-size: 48px 48px;
    margin-right: 12px;
  }

  a.logo:after {
    top: 12px;
    bottom: 12px;
  }

  a.info {
    width: 54px;
  }

  div.title span {
    font-size: 13px;
    margin-top: 0;
  }

  div.title h1 {
    margin-top: 5px;
    height: 24px;
    line-height: 24px;
    font-size: 17px;
  }

  .map-area {
    top: 54px;
  }

  .panels {
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
  }

  ul.tabs {
    left: 24px;
  }

  div.sticky-tabs > ul.tabs {
    left: 24px;
  }

  /*.panel.car div.nav-bar {
    display: none;
  }*/

  ul.card-grid > li.card {
    width: calc(50% - 6px);
  }

  ul.card-grid > li.card:nth-child(3) {
    margin-right: 12px;
  }

  ul.card-grid > li.card:nth-child(even) {
    margin-right: 0;
  }

  .car-info-text {
    padding: 32px 24px;
  }

  .info-modal {
    transform: none;
    top: 0;
    left: 0;
    border-radius: 0;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 56px 32px;
  }

  .info-modal-content {
    top: 50%;
    left: 50%;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 0 32px;
    transform: translate3d(-50%,-50%,0);
  }
}

@media (min-width: 481px) and (max-width: 776px) {
  ul.card-grid > li.card {
    width: calc(33% - 8px);
  }

  ul.card-grid > li.card:nth-child(even) {
    margin-right: 12px;
  }

  ul.card-grid > li.card:nth-child(3n+3) {
    margin-right: 0 !important;
  }
}

@media (hover:hover) and (max-width:776px) {
  .panels { pointer-events: none; }

  .panels.hovered {
    pointer-events: all;
  }
}

@media(max-width: 776px){
  .car-info-preview {
    opacity: 1;
    pointer-events: none;
  }

  body.car-preview-open .panels {
    overflow: hidden;
  }

  body.car-preview-open .car-info-preview {
    pointer-events: all !important;
  }

  body.car-panel-expanded .car-info-preview {
    opacity: 0;
    pointer-events: none;
  }

  body.car-panel-expanded .panels-container {
    border-radius: 0;
  }

  body.car-panel-expanded .nav {
    box-shadow: 0px 4px 16px rgba(0,0,0,0);
  }

  body.car-panel-expanded .car-info-content {
    height: 100vh;
    padding-bottom: 96px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    pointer-events: all;
  }

  body.car-panel-expanded div.sticky-tabs,
  body.car-preview-open div.sticky-tabs,
  body.car-panel-expanded.sticky-header div.sticky-tabs,
  body.car-preview-open.sticky-header div.sticky-tabs {
    display: none;
    opacity: 0;
    pointer-events: none;
  }

  body.car-panel-expanded .nav {
    opacity: 0;
    pointer-events: none;
  }

  body.car-panel-expanded .panels, body.car-panel-expanded .panels-container {
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
  }

  body div.nav-bar.floating-nav-bar {
    opacity: 0;
  }

  body.car-panel-expanded div.nav-bar.floating-nav-bar {
    opacity: 1;
    border-radius: 0;
  }
}

@media(min-width: 777px){
  #map {
    transform: translate3d(0,0,0) !important;
  }

  .nav {
    transform: translate3d(0,0,0) !important;
  }
}

svg, use {
  pointer-events: none;
}

.current-location-marker {
  width: 28px;
  height: 28px;
  background: white;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.3), 0px 0px 18px 8px rgba(18, 184, 255, 0.5);
  border-radius: 50%;
}

@keyframes location-pulse {
  0% {
    transform: translate3d(0,0,0) scale(0.8);
  }

  100% {
    transform: translate3d(0,0,0) scale(0.68);
  }
}

.current-location-marker .current-location-circle {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  margin-left: 2px;
  background: #1087BA;
  transform-origin: 50% 50%;
  transform: translate3d(0,0,0);
  border-radius: 12px;
  animation: location-pulse 1s linear alternate infinite;
}

.current-location-marker.disabled {
  pointer-events: none;
  opacity: 0;
}

.car-history-section {
  font-size: 16px;
  line-height: 22px;
}

.car-history-section img {
  height: auto;
  max-width: 100%;
}

.car-history-section br {
  display: block;
  content: " ";
  height: 22px;
}

.car-history-section div.photo-left, .car-history-section div.photo-right {
  width: 100% !important;
  margin-top: 22px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 18px;
  color: #7D838D;
}


.car-history-section div.photo-left img, .car-history-section div.photo-right img {
  width: 100% !important;
  display: block;
  height: auto !important;
  margin-bottom: 4px;
}

.dual-ring {
  display: block;
  width: 64px;
  height: 64px;
}
.dual-ring:after {
  content: " ";
  display: block;
  width: 46px;
  height: 46px;
  margin: 1px;
  border-radius: 50%;
  border: 5px solid #3F4A5C;
  border-color: #3F4A5C transparent #3F4A5C transparent;
  animation: dual-ring 1.2s linear infinite;
  opacity: 0.4;
}
@keyframes dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#mobile-test-div {
  width: 100%;
  height: 0;
  height: env(safe-area-inset-top);
  opacity: 0;
  pointer-events: none;
  font-size: 0px;
  position: absolute;
}

.marker-museum {
  text-align: center;
}
.marker-museum img {
  width: 36px;
  height: auto;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.marker-museum span {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  background: white;
  border-radius: 30px;
  display: block;
  line-height: 18px;
  height: 18px;
  padding: 0 6px;
  margin-top: 0px;
  text-align: center;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.museum-popup {
  max-width: 240px;
  font-size: 14px;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.museum-popup a {
  text-decoration: underline;
  color: #0071C2;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media (max-width: 600px){
  .marker-museum img {
    width: 28px;
  }

  .marker-museum span {
    margin-top: -4px;
    font-size: 11px;
  }
}
