@font-face {
  font-family: "Flama";
  src: url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Book-webfont.eot");
  src: url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Book-webfont.eot?#iefix") format("embedded-opentype"), url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Book-webfont.woff2") format("woff2"), url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Book-webfont.woff") format("woff"), url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Book-webfont.ttf") format("truetype"), url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Book-webfont.svg#flamabook") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Flama";
  src: url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Bold-webfont.eot");
  src: url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Bold-webfont.eot?#iefix") format("embedded-opentype"), url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Bold-webfont.woff2") format("woff2"), url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Bold-webfont.woff") format("woff"), url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Bold-webfont.ttf") format("truetype"), url("https://infograficos.estadao.com.br/assets/fonts/Flama/Flama/Flama-Bold-webfont.svg#flamabold") format("svg");
  font-weight: bold;
  font-style: normal;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  font-size: 62.5%;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
  font-family: 'Flama', sans-serif;
  font-size: 1.6rem;
  line-height: 2.8rem;
  display: flex;
  margin: 0;
}

table {
  border-spacing: 0;
}

ul,
ol,
li {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

hr {
  width: 100%;
  height: 1px;
  margin: 7.2rem auto 7.2rem;
  background-color: #f2f2f2;
  border: 0;
}

h2 {
  font-size: 2.3rem;
  margin: 0;
}


h3 {
  margin: 0;
  font-size: 20px;
  text-transform: uppercase;
  color: #666666;
  font-weight: 400;
}

h4 {
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: uppercase;
  margin: 1rem 0 0.5rem 0;
  padding: 0.7rem 0.5rem;
  line-height: 1.4em;
}

p input[type="number"] {
  font-size: 1em;
  font-weight: 700;
  font-family: 'Flama', sans-serif;
  border: 0;
  border-radius: 1em;
  padding: 0 0.4em;
  width: 3.5em;
  outline: none;
  background-color: #e2e2e2;
  color: #666666;
}

main {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Navegação/titulos */
.maps-container h3 {
  float: left;
  margin-right: 1rem;
  padding-bottom: 0.5rem;
  color: #b3b3b3;
}
.maps-container h3.active {
  border-bottom: 3px solid;
}

.maps-container h3.active#t0 {
  color: #d50000;
}
.maps-container h3.active#t1 {
  color: #009688;
}

.title-block {
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0 2rem 0;
}

.title-block .legend div:first-child {
  margin-bottom: 1rem;
}

.title-block .legend svg {
  width: 62px;
  height: 32px;
  flex: none;
  float: left;
  margin-right: 1rem;
}

.title-block .legend p {
  margin: 0;
  /* text-transform: uppercase; */
  color: #666666;
  font-size: 1.4rem;
  line-height: 1.4em;
}

.title-block .lead {
  font-size: 1.6rem;
  line-height: 1.4em;
  margin-bottom: 1.5em;
}

.title-block .lead h3 {
  color: #000000;
  font-size: 1.6rem;
  font-weight: 600;
}

.title-block .lead p {
  margin: 0;
}

.title-block .legend {
  max-width: 20em;
}

.lead form {
  position: relative;
}

.lead .ipt-search {
  width: 100%;
  font-family: 'Flama', sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  border: none;
  border-bottom: 1px solid #333333;
  margin-top: 0.5em;
  outline-color: #cccccc;
  line-height: 2em;
  padding: 0 2em 0 0.5em;
  border-radius: 0;
}

.lead .btn-search {
  height: 2em;
  width: 2em;
  font-size: 1.6rem;
  position: absolute;
  top: 0.5em;
  right: 0;
  border: none;
  outline-color: #cccccc;
  background: transparent url(../img/search.png) no-repeat center center;
  background-size: 80%;
  cursor: pointer;
}

/* Mapas */
.maps-container {
  justify-content: space-between;
  position: relative;
}
.map-column {
  width: 100%;
  position: relative;
}

.map {
  width: 100%;
  height: 60vw;
  max-height: 680px;
  background: #f6f6f6;
}
.map .leaflet-tile-pane .leaflet-layer:first-child {
  filter: grayscale(100%);
}

.map {
  cursor: pointer !important;
}

.btn-reset {
  position: absolute;
  right: 10px;
  top: 45px;
  display: none;
  z-index: 9999;
  background-color: #ffbc00;
  border: 0;
  border-radius: 2px;
  padding: 0.5em 1em;
  color: #ffffff;
  text-transform: uppercase;
  font-family: 'Flama', sans-serif;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}
.btn-reset:active {
  background-color: #d39c00;
}

.btn-reset svg {
  width: 0.9em;
  top: 0.05em;
  left: 0.1em;
  position: relative;
  transform-origin: 50%;
  transform: scaleX(-1);
}

.labels {
    font-size: 18px;
    color: #333333;
    text-transform: uppercase;
    margin: 5px 0;
}
.labels.disabled {
  opacity: 0;
}

p.labels span {
  font-weight: 600;
}

#mc0 h4 {
  color: #d50000;
  background-color: #fef7f7;
}

#mc1 h4 {
  color: #009688;
  background-color: #eaf0f0;
}

.cards-container {
  height: 24rem;
  visibility: hidden;
}

.simplebar-scroll-content {
  -webkit-overflow-scrolling: touch;
}

.card {
  border: 1px dashed #c6c5c5;
  border-left: none;
  border-right: none;
  font-size: 1.6rem;
  height: 4rem;
  margin: 0 0 -1px 0;
  overflow: hidden;
}

.card.open {
  height: 19rem;
}
#mc0 .card:hover {
  background-color: #fef7f7;
}
#mc0 .card.open {
  background-color: #fef7f7;
  border-top: 2px solid #d50000;
}

#mc1 .card:hover {
  background-color: #f7fcfb;
}
#mc1 .card.open {
  background-color: #f7fcfb;
  border-top: 2px solid #009688;
}

.card.hidden {
  display: none;
}

.card .title-container {
  position: relative;
  height: 4rem;
  padding: 0 0.5em;
  white-space: nowrap;
  margin: 0 0 0.5em 0;
  cursor: pointer;
}

.card .title-container:after {
  position: absolute;
  width: 2em;
  height: 100%;
  right: 0;
  top: 0;
  content: '';
  background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
  background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=1 );
}

.card .title {
  color: #b3b3b3;
  height: 4rem;
  line-height: 4rem;
  font-weight: 400;
  font-size: 1.7rem;
  padding: 0;
  margin: 0;
}

.card.open .title {
  color: #333333;
  position: absolute;
}

.card .title .spn-line-code,
.card .title .spn-original-line-code {
    font-weight: 600;
}

.title-container .rush-line {
  position: absolute;
  padding: 0;
  bottom: -1.3em;
  opacity: 0;
  padding-left: 2rem;
}

.card.open .title-container .rush-line {
  opacity: 1;
}

.rush-line:before {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  top: 1px;
  text-align: center;
  color: #333333;
  border-style: solid;
  border-width: 0 8.5px 14.7px 8.5px;
  border-color: transparent transparent #ffbc00 transparent;
}

.rush-line:after {
  content: '!';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 1rem;
  font-weight: 600;
  width: 17px;
  text-align: center;
}

.card.hidden {
  display: hidden;
}

.card.open .title-container:after {
  content: none;
}

.card p {
  margin: 0 0 0.5em 0;
  line-height: 1.3em;
  font-size: 1.4rem;
  padding: 0 0.5em;
}

.card .img-bus {
  height: 45px;
  margin: 10px 5px;
  mix-blend-mode: multiply;
}

.card .details {
  display: flex;
  flex-direction: row;
}

.vehicle-details {
  flex: 65%;
}

.line-details {
  flex: 35%;
}

.spn-line-km {
  font-size: 1.8rem;
}

.spn-line-extension {
  font-weight: 600;
  font-size: 2.2rem;
}

.btn-related-line {
  font-size: 1.4rem;
  background-color: #ffffff;
  border: 1px solid;
  border-radius: 2em;
  outline: none;
  cursor: pointer;
  padding: 0.3em 0.5em;
  margin-left: 5px;
}
#mc0 .btn-related-line {
  border-color: #009688;
  color: #009688;
}
#mc0 .btn-related-line:active {
  background-color: #d8efeb;
}
#mc1 .btn-related-line {
  border-color: #d50000;
  color: #d50000;
}
#mc1 .btn-related-line:active {
  background-color: #ffe7e7;
}

.btn-related-line img {
  height: 1em;
  display: inline-block;
}

/* Related card */
.overlap-bar {
  display: inline-block;
  width: 5em;
  height: 1em;
  margin: 0 0.4em;
  border: 1px solid #009688;
  bottom: -0.2em;
  position: relative;
}
.overlap-bar-bellow {
  position: absolute;
  left: 2px;
  top: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background-color: #bfe5e1;
}
.overlap-bar-above {
  position: absolute;
  left: 2px;
  top: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background-color: #009688;
  transform-origin: left;
  transform: scaleX(0);
}

.card .overlap-text {
  color: #009688;
  padding-left: 0.5em;
  font-size: 1.6rem;
  margin: 0.3em 0 0.1em 0;
}

.original-title-container {
  position: relative;
  padding: 0 0.5em;
  white-space: nowrap;
  margin: -0.3em 0 0.5em 0;
  cursor: pointer;
}

.card.open .original-title-container .title {
  position: relative;
  height: auto;
  line-height: 1.2em;
  font-size: 1.4rem;
}

#mc1 .card.open {
    height: 16rem;
}

#mc1 .card.related-card.open {
  height: 25rem;
}

.related-card p.title {
  color: #009587;
}

.card.related-card.open .title-container {
  margin-bottom: 1em;
}

.cards-container .see-also {
  background-color: #ffffff;
  margin: 0;
  bottom: 0;
  text-transform: uppercase;
  font-weight: 600;
  color: #009587;
  padding: 1rem 0.5em 0 0.5em;
  border-top: 1px dashed #c6c5c5;
  line-height: 4rem;
  z-index: 999999;
  font-size: 1.4rem;
}

.cards-container .see-also + .card {
  border-top: none;
}

/* Destaque para linha selecionada */
path.highlighted-line {
  stroke-dasharray: 4;
  animation: dash 2s linear;
  animation-iteration-count: infinite;
}

/* Metodologia */
.methodology-block {
  margin: 2rem 0;
}

.methodology-block p {
  font-size: 1.2rem;
  line-height: 1.2em;
  margin: 0.5rem 0;
}

.methodology-block img {
  width: 500px;
  max-width: 100%;
}

.methodology-block .btn-methodology {
  border: 0;
  background-color: transparent;
  padding: 0;
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
  outline: none;
  cursor: pointer;
}

.methodology {
  display: none;
}

.wait-please {
  position: absolute;
  left: 0;
  top: 0;
  background-color: rgba(255,255,255,0.7);
  width: 100%;
  height: 100%;
  z-index: 999999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wait-please span {
  animation-name: blink;
  animation-duration: 1.4s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

.wait-please span:nth-child(2) {
  animation-delay: .2s;
}

.wait-please span:nth-child(3) {
  animation-delay: .4s;
}

.wait-please p {
  top: 30vw;
  position: relative;
  align-self: flex-start;
}

.leaflet-clickable {
  pointer-events: none;
}



@media (max-width: 711px) {
  .hidden-xs {
    display: none;
  }
  .map-column {
    clear: left;
  }

  h3.btn-map {
    cursor: pointer;
  }
}

@media (min-width: 712px) {
  body {
    font-size: 1.8rem;
    line-height: 3.2rem;
  }

  #mc0 .leaflet-container .leaflet-control-attribution {
    display: none;
  }

  #mc1 .leaflet-control-zoom {
    display: none;
  }

  .title-block {
    flex-direction: row;
    justify-content: space-between;
  }

  .title-block .lead {
    width: 49%;
    margin-bottom: 0;
  }

  .title-block .legend {
    flex: 49%;
    max-width: 18em;
    display: flex;
    flex-direction: column;
  }


  .card.open {
    height: 16rem;
  }
  #mc1 .card.related-card.open {
    height: 21rem;
  }
  .map-column {
    width: 49%;
    position: relative;
    float: left;
  }
  .map-column#mc0 {
    margin-right: 2%;
  }
  .map-column#mc1 {
    display: block;
  }

  .btn-related-line {
    display: none;
  }

  .btn-reset {
    top: 0;
    right: 0;
  }

  /* Titulos */
  .maps-container h3.btn-map#t0,
  .maps-container h3.btn-map#t1 {
    width: 49%;
    margin: 0;
    border: none;
    color: #666666;
  }
  .maps-container h3.btn-map#t0 {
    margin-right: 2%;
  }

  .wait-please p {
    top: 240px;
  }

}

@media (min-width: 900px) {
  .map {
    height: 400px;
  }
}

.pulse {
  box-shadow: 0 0 0 rgba(288, 188, 0, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    stroke-width: 2;
    stroke: rgba(288, 188, 0, 0.75);
  }
  100% {
    stroke-width: 100;
    stroke: rgba(288, 188, 0, 0);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -8;
  }
}

@keyframes blink {
  0% {
    opacity: .1;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: .1;
  }
}
