/* Component styles */

/* Header */
header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);
  background: #fff;
  z-index: 99;
  transition: 0.3 all ease-in-out;
}

  /* Header content */

      /* Brand */
      .company-title{
        margin-left: 10px;
      }
      .company-title h1{
        margin: -5px 0 0 0;
        font-size: 30px;
        line-height: 1;
        color: var(--main-color);
      }
      .company-title h2{
        margin: 0;
        font-family: 'Sofia';
        font-weight: normal;
        font-size: 20px;
        line-height: 1.5;
        color: var(--subtitle-color);
      }

      /* Top menu */
      .top-menu{
        height: 100%;
      }
      .top-menu .top-menu-item{
        padding-left: calc(0.5 * var(--padding));
        transition: 0.3s all ease-in-out;
      }
      .top-menu .top-menu-item img{
        height: 30px;
      }
      .top-menu .top-menu-item:hover img{
        opacity: 0.9;
      }
      .top-menu-item.lang-nav,
      .top-menu-item.lang-nav .lang-item{
        margin: 0;
        padding: 0;
      }
      .top-menu-item.lang-nav .lang-item>a{
        position: relative;
        border: 1px solid var(--form-border);
        padding: 5px 35px 5px 10px;
        height: 30px;
        border-radius: 15px;
        text-decoration: none;
        color: var(--subtitle-color) !important;
      }
      .top-menu-item.lang-nav .lang-item>a:hover{
        border: 1px solid var(--form-border);
        padding: 5px 35px 5px 10px;
        height: 30px;
        border-radius: 15px;
        text-decoration: none;
        color: #333 !important;
        background: var(--form-bgr-faded-bgr);
      }
      .top-menu-item.lang-nav .lang-item>a::after{
        position: absolute;
        width: 25px;
        height: 25px;
        border-radius: 20px;
        top: 50%;
        right: 3px;
        margin-top: -12.5px;
        content: '';
      }
      .top-menu-item.lang-nav .lang-item.lang-item-en>a::after{
        background: url('../assets/images/flag-en.svg');
        background-size: contain;
      }
      .top-menu-item.lang-nav .lang-item.lang-item-bg>a::after{
        background: url('../assets/images/flag-bg.svg');
        background-size: contain;
      }

      /* Navbar */
      .navbar{
        border-top: 9px solid var(--main-color);
        padding: 0;
      }
      /* No padding for the mobile menu's container */
      @media (max-width: 991px) {
        .navbar .container{
          padding: 0 !important;
        }
      }
      .navbar-collapse .nav-link{
        font-size: 20px;
        padding: var(--padding) !important;
        color: var(--main-color) !important;
        transition: 0.3s all ease-in-out;
        position: relative;
      }
      /* Nav link station circle for desktop */
      @media (min-width: 992px) {
        .navbar-collapse .nav-link::before{
          position: absolute;
          top:-15px;
          left: calc(50% - 10px);
          width: 20px;
          height: 20px;
          background: #fff;
          border-radius: 10px;
          border: 5px solid var(--main-color);
          content: '';
        }
      }
      .navbar-toggler{
        top: -30px;
        right: 11px;
        position: absolute;
        width: 50px;
        height: 50px;
        border-radius: 25px;
        padding: 0;
        background: #fff;
        border: 5px solid var(--main-color);
        z-index: 999;
        outline: none !important;
      }

      .navbar-collapse .nav-link:hover,
      .navbar-collapse .nav-link.active,
      .navbar-collapse .nav-link.show{
        background: var(--form-sc-inactive-bgr);
        color: var(--main-color) !important;
      }
      /* Drop down design */
      .nav-item .dropdown-menu{
        min-width: 100%;
        border: none;
        margin-top: -2px;
        border-radius: 0;
        background: var(--form-sc-inactive-bgr);
        padding-bottom: 0;
      }
      .nav-item .dropdown-item:hover{
        background: var(--form-border) !important;
      }
      .nav-item .dropdown-item.active,
      .nav-item .dropdown-item:active {
        background-color: var(--main-color);
      }
      .nav-item .dropdown-item.active:hover{
        background-color: var(--main-color-accent) !important;
        color: #fff;
      }

      /* The menu is compacting itself solely on desktop */
      @media (min-width: 991px){
          .upper-header{
            height: auto;
            margin-top: var(--margin);
            margin-bottom: var(--margin);
            transition: all 0.3s ease-out;
          }
          .upper-header.animate{
            overflow: hidden;
            transform: scaleY(0);
            margin-top: -75px;
          }
          .lower-header{
            transition: all 0.1s ease-in-out;
          }
          .lower-header .navbar-brand,
          .lower-header .top-menu{
            opacity: 0;
          }
          .lower-header.animate .navbar-brand,
          .lower-header.animate .top-menu{
            opacity: 1;
          }
      }
      /* The secondary brand and language switcher are hidden on mobile */
      @media (max-width: 991px){
          .upper-header{
            margin-top: var(--margin);
            margin-bottom: var(--margin);
          }
          .lower-header .navbar-brand,
          .lower-header .top-menu{
            display: none !important;
          }
      }

/* Boxes */
.box{
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  border-radius: 9px;
  padding: var(--padding) calc(2 * var(--padding));
  box-shadow: 0 2px 10px 2px var(--accent-box-shadow-color);
  flex-flow: column wrap;
  justify-content: flex-end;
}

      /* Route and Route planner box - on the homepage, fold a search form */
      .box.route-box,
      .box.route-planner-box,
      .box-accent-box,
      .box.alteration-box{
        margin-bottom: var(--margin);
        position: relative;
      }
      .box.route-box{
        background: url('../assets/images/route-box__bgr.jpg') no-repeat center center;
        background-size: cover;
      }
      .box.route-planner-box{
        height: 250px;
        background: url('../assets/images/route-planner-box__bgr.jpg') no-repeat center center;
        background-size: cover;
      }
      .box.alteration-box{
        text-align: center;
        min-height: 250px;
        color: #842029;
        background: #f8d7da;
        border: 1px solid #f5c2c7;
      }
      .box.accent-box{
        flex-direction: column;
        height: 200px;
        margin-top: calc( 2.7 * var(--margin) );
        background: var(--accent-box-bgr);
      }
      .route-box h1,
      .route-planner-box h3{
        display: inline-flex;
        align-self: self-end;
        font-size: 40px;
        margin-bottom: var(--margin);
        color: var(--main-color);
      }
      .alteration-box .icon-full-suspension{
        width: 60px;
        height: 60px;
        margin: auto;
        background: url('../assets/images/icon-full-suspension.svg') no-repeat center center;
        background-size: cover;
        margin-bottom: var(--margin);
      }
      .alteration-box h3,
      .alteration-box a{
        color: #842029;
      }

      /* Compact */
      .alteration-box.compact{
        text-align: left;
        padding-left: 80px !important;
        min-height: auto !important;
        height: auto !important;
      }
      .alteration-box.compact .icon-full-suspension{
        position: absolute;
        top: 50%;
        left: 20px;
        margin-top: -20px;
        width: 40px;
        height: 40px;
      }
      .alteration-box.compact h3{
        margin-bottom: 0 !important;
      }

      .route-box .lines{
        display: inline-flex;
        align-self: self-end;
      }
      .accent-box h3{
        width: 80%;
        text-align: right;
        align-self: self-end;
        font-size: 30px;
        color: #000;
      }
      .accent-box p{
        width: 70%;
        align-self: self-end;
        font-size: 20px;
        text-align: right;
        color: #000;
      }
      .accent-box .btn{
        background: #000;
      }
      .accent-box .btn:hover{
        background: #333;
      }
      .accent-box::after {
          position: absolute;
          background: url('../assets/images/accent-box__img.png') bottom center no-repeat;
          background-size: contain;
          top: -15%;
          bottom: 0;
          width: 30%;
          left: var(--padding);
          content: '';
      }

      /* Route box field */
      .route-box .form-autosuggest{
        display: inline-flex;
        align-self: self-end;
        position: relative;
        width: 40%;
      }
      .route-box::after{
        position: absolute;
        background: url('../assets/images/route-box__img.png');
        background-size: cover;
        top: -15%;
        bottom: 0;
        width: 20%;
        left: calc(2 * var(--padding));
        content: ''
      }

      /* Route and Route planner box accent image on mobile */
      @media (max-width: 991px) {
        /* Route box - on the homepage, fold a search form */
        .box.route-box,
        .box.route-planner-box,
        .box.accent-box{
          margin: var(--margin) 0;
          display: flex;
          flex-direction: row;
        }
        .box.route-box{
          background: url('../assets/images/route-box__bgr.jpg') no-repeat center right;
        }
        .box.route-planner-box{
          background: url('../assets/images/route-planner-box__bgr.jpg') no-repeat center right;
          background-size: cover;
        }
        .route-box .form-autosuggest{
          width: 60%;
        }
        .box.accent-box{
          height: auto;
          margin-top: calc( 2.7 * var(--margin) );
          background: var(--accent-box-bgr);
        }
        .route-box h1,
        .route-planner-box h3{
          display: block;
          width: 100%;
          font-size: 30px;
          text-align: right;
          margin-bottom: var(--margin);
          color: var(--main-color);
        }
        /* Route box field */
        .route-box .form-autosuggest{
          display: block;
          width: 100%;
          position: relative;
        }
        .route-box::after{
          display: none;
        }

      }
      @media (max-width: 1399px){
        .box.accent-box{
          flex-direction: row !important;
        }
        .box.accent-box > h3,
        .box.accent-box > p,
        .box.accent-box > .button-wrapper{
          box-sizing: border-box;
          width: 70%;
        }
        .accent-box h3{
          font-size: 22px;
        }
        .accent-box p{
          font-size: 16px;
        }
      }
      @media (max-width: 768px){
        .box.accent-box{
          margin-top: 0;
        }
      }

      /* Route box universal styles */
      .form-autosuggest{
        position: relative;
      }
      .form-autosuggest input{
        padding-right: 38px;
      }
      .form-autosuggest .trigger{
        position: absolute;
        display: block;
        right: 9px;
        top: 9px;
        bottom: 0;
        width: 20px;
        height: 20px;
        content: '';
        background: red;
        text-align: center;
        line-height: 38px;
        content: '';
        background: url('../assets/images/autosuggest-caret.svg') no-repeat center center;
      }
      .form-autosuggest .trigger:hover{
        cursor: pointer;
      }
      .form-autosuggest .dropdown-menu.selected-option{
        display: block;
        position: absolute;
        top: 2.5px;
        left: 3px;
        padding: 0;
        border: none;
      }
      .form-autosuggest .dropdown-menu.scroll{
        overflow-y: scroll;
        max-height: 200px;
      }

      /* Route box dropdown */
      .m1-indicator,
      .m2-indicator,
      .m3-indicator,
      .m4-indicator{
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 5px;
        margin-right: 5px;
      }

      .m1-indicator{
        background: var(--m1-color);

      }
      .m2-indicator{
        background: var(--m2-color);
      }
      .m3-indicator{
        background: var(--m3-color);
      }
      .m4-indicator{
        background: var(--m4-color);
      }

/* Service disruptions */
.service-disruption-list{
  display: flex;
  flex-direction: column;
  margin-top: var(--margin);
}
      .service-disruption-list a.disruption-announcement{
        display: flex;
        padding: calc(0.5 * var(--padding)) 0;
        align-items: center;
        border-bottom: 1px solid var(--tab-border);
        transition: 0.3s all ease-in-out;
      }
      .service-disruption-list a.disruption-announcement:last-child{
        border: none;
      }
      .service-disruption-list a.disruption-announcement:hover{
        background: var(--td-bgr);
      }
      .da-item.affected-lines{
        width: auto;
        padding-left: 10px;
        padding-right: 10px;
        height: 30px;
      }
      .da-item.disruption-badge{
        width: 150px;
        padding-right: 10px;
        text-align: right;
      }
          .disruption-badge.badge-disrupt{
            color: var(--disrupt-color);
          }
          .disruption-badge.badge-warning{
            color: var(--warning-color);
          }
      .da-item.disruption-message{
        width: calc(100% - 270px);
        flex-grow: 2;
        color: var(--body-text-color);
      }
      a.disruption-announcement:hover .disruption-message{
        text-decoration: underline;
      }

      /* Metro lines */
      .da-item.affected-lines span{
        display: inline-block;
        width: 30px;
        height: 30px;
        margin-right: 3px;
        background-size: contain;
      }

      /* Metro lines in station template */
      .lines .da-item.affected-lines{
        width: auto;
        margin-top: 20px;
        min-height: 50px !important;
      }
      .transfer-option .da-item{
        padding-left: 0;
      }
      .lines .da-item.affected-lines span{
        display: inline-block;
        width: 50px;
        height: 50px;
        margin-right: 5px;
        background-size: contain;
      }

      /* Mobile view of the disruption list */
      /* A compact view is also available, when the container for the disruption list is smaller than 400px, aQuery appends the class */
      .service-disruption-list.compact-view a.disruption-announcement{
        flex-direction: initial;
        flex-wrap: wrap;
      }
      .service-disruption-list.compact-view .da-item.affected-lines,
      .service-disruption-list.compact-view .da-item.disruption-badge{
        width: 50%;
        margin-bottom: calc( 0.5 * var(--margin) );
      }
      .service-disruption-list.compact-view .da-item.affected-lines{
        order: 1 !important;
      }
      .service-disruption-list.compact-view .da-item.disruption-badge{
        order: 2 !important;
      }
      .service-disruption-list.compact-view .da-item.disruption-message {
        order: 3 !important;
        min-width: 100%;
        padding: 0 10px;
      }

.transport-list{
  margin: 20px 0 0 0;
  padding: 0;
  display: flex;
  flex-flow: row wrap;
}
      .transport-list .stop-item{
        list-style: none;
        padding: 10px 0 10px 10px;
        border-bottom: 1px solid var(--tab-border);
        width: 100%;
        flex-grow: 0;
      }
      .stop-item .stop-name{
        display: flex;
      }
      .stop-item a.stop-name{
        text-decoration: none !important;
      }
      .stop-item .stop-name .stop-sigil{
        box-sizing: border-box;
        align-self: center;
        width: 30px;
        height: 30px;
        background: var(--stop-bgr);
        border: 3px solid var(--stop-color);
        border-radius: 15px;
        text-align: center;
        text-decoration: none !important;
        font-family: 'Lato', sans-serif;
        font-weight: 900;
        font-size: 20px;
        line-height: 24px;
        color: var(--stop-color);
      }
      .stop-item .stop-name .stop-text{
        align-self: center;
      }
      .stop-item .stop-name .stop-title{
        display: block;
        padding-left: 10px;
        color: var(--body-text-color);
        font-weight: bold;
      }
      .stop-item .stop-name .stop-number{
        display: block;
        padding-left: 10px;
        font-size: 14px;
      }
      /* Transport types */
      .transport-breakdown{
        padding: 0;
      }
      .transport-breakdown .transport-type{
        position: relative;
        list-style: none;
        padding-left: 73px;
        min-height: 27px;
        margin: 1px 0;
      }
      .transport-breakdown .transport-type .line-icon {
        position: absolute;
        top: 6px;
        left: 50px;
        width: 20px;
        height: 20px;
      }
      .transport-breakdown .transport-type .line-number {
        display: inline-block;
        box-sizing: border-box;
        margin-right: 3px;
        margin-bottom: 0px;
        height: 20px;
        width: auto;
        padding: 0 10px;
        min-width: 40px;
        border-radius: 3px;
        text-align: center;
        font-family: "Lato", sans-serif;
        font-weight: 900;
        font-size: 13px;
      }
      /* Coloring */
      .line-number.retro-number{
        background: var(--retro-color);
        color: #fff;
      }
      .line-number.tram-number{
        background: var(--tram-color);
        color: #fff;
      }
      .line-number.trolley-number{
        background: var(--trolley-color);
        color: #fff;
      }
      .line-number.bus-number{
        background: var(--bus-color);
        color: #fff;
      }
      .line-number.night-bus-number{
        background: var(--nosht-color);
        color: #fff;
      }
      .line-number.izleten-bus-number{
        background: var(--izlet-color);
        color: #fff;
      }

.exit-list{
  margin: 20px 0 0 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-flow: row wrap;
}
      .exit-list .exit-item{
        display: flex;
        list-style: none;
        padding: 10px 0;
        border-bottom: 1px solid var(--tab-border);
        width: calc(50% - 20px);
        flex-grow: 0;
        justify-content: space-between;
        align-items: center;
      }
      .exit-panel{
        display: flex;
        min-height: 30px;
      }
      .exit-panel .exit-number{
        box-sizing: border-box;
        align-self: center;
        min-width: 30px;
        width: 30px;
        height: 30px;
        background: var(--main-color);
        border: 3px solid #fff;
        box-shadow: 0 0 0 #000;
        text-align: center;
        text-decoration: none !important;
        font-family: 'Lato', sans-serif;
        font-weight: 900;
        font-size: 18px;
        line-height: 25px;
        color: #fff;
      }
      .exit-panel.exit-heritage .exit-number{
        background: var(--retro-color);
      }
      .exit-panel .exit-name{
        flex-grow: 0;
        margin-left: 5px;
      }
      .exit-amenity{
        flex-grow: 0;
        min-width: 73px;
        text-align: right;
      }
      .exit-amenity > span{
        display: inline-block;
        width: 30px;
        height: 30px;
        margin-left: 5px;
        overflow: hidden;
        text-indent: 9999px;
      }
      .exit-amenity > span.icon-lift{
        background: url('../assets/images/icon-lift.svg') no-repeat center center;
      }
      .exit-amenity > span.icon-escalator{
        background: url('../assets/images/icon-escalator.svg') no-repeat center center;
      }
      .exit-amenity > span.icon-ramp{
        background: url('../assets/images/icon-ramp.svg') no-repeat center center;
      }

      /* Public transport connections on mobile */
      @media (max-width: 991px) {

        .transport-list,
        .exit-list{
          justify-content: space-between;
          flex-flow: column;
        }
        .transport-list .stop-item,
        .exit-list .exit-item{
          width: 100%;
        }

      }

/* Icons */
span.metro-sigil{
  background: url('../assets/images/metro-sigil.svg') no-repeat center center;
}
span.m1-line{
  background: url('../assets/images/metro-m1.svg') no-repeat center center;
}
span.m2-line{
  background: url('../assets/images/metro-m2.svg') no-repeat center center;
}
span.m3-line{
  background: url('../assets/images/metro-m3.svg') no-repeat center center;
}
span.m4-line{
  background: url('../assets/images/metro-m4.svg') no-repeat center center;
}
span.walker{
  background: url('../assets/images/icon-walk.svg') no-repeat center center;
}
span.park-n-ride{
  background: url('../assets/images/icon-pnr.svg') no-repeat center center;
}
span.tram-icon{
  background: url('../assets/images/icon-tram.svg') no-repeat center center;
}
span.retro-icon{
  background: url('../assets/images/icon-rtram.svg') no-repeat center center;
}
span.retro-tram-icon{
  background: url('../assets/images/icon-rtram.svg') no-repeat center center;
}
span.trolley-icon{
  background: url('../assets/images/icon-troley.svg') no-repeat center center;
}
span.bus-icon{
  background: url('../assets/images/icon-bus.svg') no-repeat center center;
}
span.night-bus-icon{
  background: url('../assets/images/icon-nbus.svg') no-repeat center center;
}
span.izleten-bus-icon{
  background: url('../assets/images/icon-ibus.svg') no-repeat center center;
}
span.train-icon{
  background: url('../assets/images/icon-train.svg') no-repeat center center;
}
span.airport-icon{
  background: url('../assets/images/icon-airport.svg') no-repeat center center;
}
span.busstation-icon{
  background: url('../assets/images/icon-busstation.svg') no-repeat center center;
}

/* Article items */
.news-preview .article-thumb{
  display: block;
  overflow: hidden;
  height: 190px;
  border-radius: 9px;
}
      .news-preview .article-thumb img{
        min-width: 100%;
        min-height: 100%;
      }
      .news-preview .article-link{
        font-size: 24px;
        font-weight: bold;
        text-decoration: none;
      }
      .news-preview .article-date,
      .news-preview .alert-details{
        display: block;
        width: 100%;
        color: var(--subtitle-color);
      }

      /* Alert lines */
      .alert-details .affected-lines{
        padding-left: 0;
      }
      .alert-details .da-item.affected-lines span {
          display: inline-block;
          width: 50px;
          height: 50px;
          margin-right: 5px;
          background-size: contain;
      }

      /* News in sidebar */
      .sidebar-item .article-link{
        font-size: 20px;
      }

/* Alerts single */
.alternation-details{
  margin: var(--margin) 0;
  padding-bottom: var(--padding);
  border-bottom: 1px solid var(--tab-border);
}
      .alternation-details .lines .da-item{
        padding-left: 0;
      }
      .alternation-details .lines{
        max-height: 50px;
      }

/* Timetable button */
.download-timetable{
  position: relative;
  display: block;
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid var(--m1-color);
  border-radius: 9px;
  text-decoration: none !important;
  color: var(--m1-color) !important;
  font-size: 120%;
  background: #fff;
  transition: 0.3s all ease-in-out;
}
    .download-timetable:hover{
      box-shadow: 0 5px 9px 2px rgba(0,0,0,0.1);
    }
    .download-timetable:before{
      content: '';
      display: block;
      position: absolute;
      width: 30px;
      height: 30px;
      background: url('../assets/images/pdf-icon.svg') no-repeat center center;
      top: 50%;
      margin-top: -15px;
      left: 10px;
    }

/* Pagination */
.nav-previous a,
.nav-next a{
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  background: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s all ease-in-out;
}
.nav-previous a:hover,
.nav-next a:hover{
  box-shadow: 0 5px 9px 2px rgba(0,0,0,0.1);
}

/* Station counts */
.station-count{
  margin-top: var(--margin);
}
      .station-count .station{
        display: flex;
        align-items: center;
        width: 100%;
        position: relative;
        transition: 0.3s all ease-in-out;
        border-bottom: 1px solid var(--tab-border);
      }
      .station .connections{
        height: 30px;
        width: 120px;
        max-width: 120px;
        text-align: right;
      }
      .station .station-bubble{
        position: relative;
        display: block;
        width: 40px;
        height: 100%;
        min-height: 60px;
      }
      .station .station-bubble span{
        position: absolute;
        width: 25px;
        height: 25px;
        box-sizing: border-box;
        border-radius: 15px;
        background: #fff;
        top: 50%;
        left: 50%;
        margin-top: -12.5px;
        margin-left: -12.5px;
        z-index: 9;
      }
      .station .station-bubble:before{
        position: absolute;
        display: block;
        content: '';
        width: 9px;
        top: -1px;
        left: 50%;
        margin-left: -4.5px;
        height: calc(100% + 2px);
        z-index: 8;
      }
      .station-count .station:first-child .station-bubble:before{
        top: 50%;
        height: 50%;
      }
      .station-count .station:last-child .station-bubble:before{
        top: -1px;
        height: 50%;
      }
      .station-count .station:last-child{
        border: none;
      }
      .station-count .station:hover{
        background: var(--td-bgr);
      }
            .station-count .station .station-bubble.is-transfer span{
              border: 5px solid #000 !important;
            }
            .station-count.line-m1 .station .station-bubble span{
              border: 5px solid var(--m1-color);
            }
            .station-count.line-m2 .station .station-bubble span{
              border: 5px solid var(--m2-color);
            }
            .station-count.line-m3 .station .station-bubble span{
              border: 5px solid var(--m3-color);
            }
            .station-count.line-m4 .station .station-bubble span{
              border: 5px solid var(--m4-color);
            }
            .station-count.line-m5 .station .station-bubble span{
              border: 5px solid var(--m5-color);
            }
            .station-count.line-m6 .station .station-bubble span{
              border: 5px solid var(--m6-color);
            }

            .station-count.line-m1 .station .station-bubble:before{
              background: var(--m1-color);
            }
            .station-count.line-m2 .station .station-bubble:before{
              background: var(--m2-color);
            }
            .station-count.line-m3 .station .station-bubble:before{
              background: var(--m3-color);
            }
            .station-count.line-m4 .station .station-bubble:before{
              background: var(--m4-color);
            }
            .station-count.line-m5 .station .station-bubble:before{
              background: var(--m5-color);
            }
            .station-count.line-m6 .station .station-bubble:before{
              background: var(--m6-color);
            }
      .station .station-name{
        padding-left: 10px;
        flex-grow: 0;
        width: calc( 100% - 160px );
        text-decoration: none;
        color: #000;
      }
      .station .station-name:hover{
        color: #000;
      }

/* 404 */
.container-404{
  margin: 50px auto;
}

/* Timeline */
.timeline-container .timeline-item{
  position: relative;
  padding-top: 40px;
  text-align: center;
}
      .timeline-container .timeline-item h3{
        margin-bottom: 0;
      }
      .timeline-container .timeline-item p{
        color: var(--main-color);
      }
      .timeline-container .timeline-item .point{
        position: absolute;
        top: 0;
        left: 50%;
        display: block;
        width: 20px;
        height: 20px;
        background: var(--main-color);
        margin-left: -10px;
        border-radius: 50%;
      }
      .timeline-container .timeline-item .lines{
        position: absolute;
        display: block;
        top: 8px;
        height: 4px;
        left: -10px;
        width: calc(100% + 20px);
      }
      .timeline-container .timeline-item.line-before .lines::before{
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        width: 50%;
        height: 4px;
        background: var(--main-color);
        content: '';
      }
      .timeline-container .timeline-item.line-after .lines::after{
        position: absolute;
        display: block;
        top: 0;
        left: 50%;
        width: 50%;
        height: 4px;
        background: var(--main-color);
        content: '';
      }
      .timeline-container .timeline-item.line-after.line-last .lines::after{
        background: rgb(43,57,144);
        background: -moz-linear-gradient(90deg, rgba(43,57,144,1) 0%, rgba(255,255,255,1) 100%);
        background: -webkit-linear-gradient(90deg, rgba(43,57,144,1) 0%, rgba(255,255,255,1) 100%);
        background: linear-gradient(90deg, rgba(43,57,144,1) 0%, rgba(255,255,255,1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#2b3990",endColorstr="#ffffff",GradientType=1);
      }
      /* Timeline on mobile */
      @media (max-width: 991px) {
        .timeline-container{
          margin: 0 auto;
          width: 85%;
        }
        .timeline-container .timeline-item{
          padding-top: 20px;
          padding-left: 40px;
          text-align: left;
        }
              .timeline-container .timeline-item .point{
                top: 50%;
                left: 20px;
                margin-top: -10px;
              }
              .timeline-container .timeline-item .lines{
                top: 8px;
                height: 100%;
                left: 18px;
                width: 4px;
              }
              .timeline-container .timeline-item.line-before .lines::before{
                top: 0;
                left: 0;
                height: 50%;
                width: 4px;
              }
              .timeline-container .timeline-item.line-after .lines::after{
                top: 50%;
                left: 0;
                height: 50%;
                width: 4px;
              }
              .timeline-container .timeline-item.line-after.line-last .lines::after{
                background: rgb(43,57,144);
                background: -moz-linear-gradient(180deg, rgba(43,57,144,1) 0%, rgba(255,255,255,1) 100%);
                background: -webkit-linear-gradient(180deg, rgba(43,57,144,1) 0%, rgba(255,255,255,1) 100%);
                background: linear-gradient(180deg, rgba(43,57,144,1) 0%, rgba(255,255,255,1) 100%);
                filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#2b3990",endColorstr="#ffffff",GradientType=1);
              }
      }

/* Footer */
footer{
  background: var(--footer-bgr);
}
        footer .footer-brand{
          height: 70px;
          margin-right: 20px;
        }
        footer .footer-text p{
          padding-right: 20px;
        }
        footer h4{
          margin-top: 30px;
          color: var(--footer-heading-color);
        }
        footer .menu{
          padding: 0;
          margin: 0;
        }
        footer .menu li{
          list-style: none;
        }
        footer .menu li a{
          display: block;
          color: var(--footer-link-color) !important;
        }
        footer .menu li a:hover{
          text-decoration: none;
        }
        footer .copyright-text{
          text-align: center;
          color: var(--subtitle-color);
        }

/* Sidebar */
.sidebar-item{
  margin: 0 0 20px 0;
}
.station-layout{
  width: 100%;
  position: relative;
}
.station-layout img{
  width: 100%;
  margin: 0 auto;
}
.gallery-image img{
  margin-bottom: 20px;
}

/* Timetable tabs */
.timetable-tabs .nav-tabs .nav-item .nav-link{
  border-radius: 0;
  border-top: 10px solid var(--tab-border);
  font-weight: bold;
}
        .timetable-tabs .tab-content{
          padding: 20px 0;
        }
        .timetable-tabs .nav-tabs .lead-icon{
          flex-grow: 2;
        }
        .timetable-tabs .nav-tabs .nav-item{
          min-width: 30%;
        }
        .timetable-tabs .nav-tabs .nav-item .nav-link{
          width: 100%;
        }
        .timetable-tabs .nav-tabs .lead-icon .da-item{
          padding-left: 0 !important;
        }
        .timetable-tabs .nav-tabs .nav-item{
          margin-left: 3px;
          border-right: 1px solid var(--tab-border);
          border-left: 1px solid var(--tab-border);
        }
        .timetable-tabs .nav-tabs .nav-item .nav-link{
          color: #000 !important;
          border-left: none !important;
          border-right: none !important;
          font-size: 120%;
          padding: 10px 20px 15px 20px;
        }

        /* Timetable tabs on mobile */
        @media (max-width: 991px) {
          .timetable-tabs .nav-tabs .lead-icon{
            flex-grow: 2;
            width: 100%;
          }
          .timetable-tabs .nav-tabs .nav-item{
            width: 50%;
            margin-left: 0 !important;
          }
        }

        #m1-timetable .nav-link.active{
          border-top-color: var(--m1-color);
        }
        #m2-timetable .nav-link.active{
          border-top-color: var(--m2-color);
        }
        #m3-timetable .nav-link.active{
          border-top-color: var(--m3-color);
        }
        #m4-timetable .nav-link.active{
          border-top-color: var(--m4-color);
        }

        .current-time{
          font-size: 60px;
          font-family: "Sofia Black";
        }
        #m1-direction-1-content .current-time,
        #m1-direction-2-content .current-time{
          color: var(--m1-color) !important;
        }
        #m2-direction-1-content .current-time,
        #m2-direction-2-content .current-time{
          color: var(--m2-color) !important;
        }
        #m3-direction-1-content .current-time,
        #m3-direction-2-content .current-time .current-time{
          color: var(--m3-color) !important;
        }
        #m4-direction-1-content .current-time,
        #m4-direction-2-content .current-time{
          color: var(--m4-color) !important;
        }

        .timetable-table{
          display: flex;
          flex-direction: row;
          width: 100%;
        }
        .timetable-table .timeslot-item{
          text-align: center;
          flex-grow: 1;
        }
        .timetable-table .timeslot-item .timeslot-hour{
          padding: 6px 0;
          font-family: 'Sofia Black';
          background: var(--tab-inactive);
        }
        .timetable-table .timeslot-item .timeslot-minutes span{
          line-height: 30px;
          display: block;
          width: 100%;
          height: 30px;
          color: var(--td-color);
        }
        .timetable-table .timeslot-item .timeslot-minutes span.future-time{
          color: var(--td-color-accent);
        }
        .timetable-table .timeslot-item .timeslot-minutes span:nth-child(even){
          background: var(--td-bgr);
        }

        /* Timetable on mobile */
        @media (max-width: 991px) {

          .timetable-table{
            display: flex;
            flex-direction: column;
            width: 100%;
          }
          .timetable-table .timeslot-item{
            display: flex;
            flex-direction: row
            flex-grow: 2;
          }
          .timetable-table .timeslot-item .timeslot-hour{
            width: 40px;
            text-align: center;
            line-height: 30px;
            padding: 0;
          }
          .timetable-table .timeslot-item .timeslot-minutes{
            width: calc( 100% - 40px );
            display: flex;
            flex-direction: row;
          }
          .timetable-table .timeslot-item .timeslot-minutes span{
            line-height: 30px;
            padding: 0 6px;
            flex-grow: 1;
            min-width: 30px;
            height: 30px;
            color: var(--td-color);
          }
          .timetable-table .timeslot-item .timeslot-minutes span.future-time{
            color: var(--td-color-accent);
          }
          .timetable-table .timeslot-item .timeslot-minutes span:nth-child(even){
            background: var(--td-bgr);
          }

        }

/* Site content */
@media (max-width: 768px){
  content{
    display: block;
    margin: 0 auto;
    width: 95%;
  }
}

/* Article body */
.article-content{
  margin: 0 0 var(--margin) 0;
}
        .article-content .article-header{
          margin-bottom: calc( 2*var(--margin) );
        }
        .article-content .thumbnail{
          height: 400px;
          position: relative;
          border-radius: 9px;
          overflow: hidden;
          margin-bottom: var(--margin);
        }
        .article-content .thumbnail img{
          position: absolute;
          top: 50%;
          left: 50%;
          height: auto;
          min-height: 370px;
        }
        .article-content .article-date{
          margin: var(--margin) 0;
          padding-bottom: var(--padding);
          color: var(--subtitle-color);
          border-bottom: 1px solid var(--tab-border);
        }
        .article-content .the-content .wp-block-image img{
          border-radius: 9px;
        }
        .article-content .the-content .wp-block-image .wp-element-caption{
          text-align: center;
          color: var(--subtitle-color);
          margin-top: calc(0.5*var(--margin));
        }
        .article-content .the-content .wp-block-quote{
          padding: var(--padding) var(--padding) var(--padding) calc( 2*var(--padding) );
          border-left: 5px solid var(--subtitle-color);
          color: var(--subtitle-color);
          margin: calc( 2*var(--margin) ) 0;
          font-size: 130%;
        }
        .article-content .the-content .wp-block-quote p:last-child{
          margin: 0;
        }
        .article-content .the-content ul,
        .article-content .the-content оl{
          padding: 0;
          margin: 0 0 var(--margin) 0;
        }
        .article-content .the-content ul li{
          position: relative;
          padding-left: var(--padding);
          list-style: none;
        }
        .article-content .the-content оl li{
          padding-left: var(--padding);
        }
        .article-content .the-content ul li:before{
          content: '';
          display: block;
          position: absolute;
          top: 9px;
          left: 0;
          width: 10px;
          height: 10px;
          border-radius: 5px;
          background: var(--main-color);
        }
        .article-content .the-content h2{
          margin-bottom: var(--margin);
        }
        .article-content .the-content h3{
          margin-bottom: calc(0.75*var(--margin));
        }
        .article-content .the-content h4{
          margin-bottom: calc(0.5*var(--margin));
        }
        .article-content .the-content .wp-block-embed.is-provider-youtube.wp-block-embed-youtube.wp-embed-aspect-16-9 .wp-block-embed__wrapper{
          max-width: 100%;
        	padding-top: 56.25%;
        	position: relative;
        	width: 100%;
        }
        .article-content .the-content .wp-block-embed.is-provider-youtube.wp-block-embed-youtube.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe{
          position: absolute;
        	top: 0;
        	left: 0;
        	width: 100%;
        	height: 100%;
        }

/* Line card */
.line-card{
  margin: 0 0 calc(1.5*var(--margin)) 0;
  padding: var(--padding) 0;
  text-decoration: none !important;
}
        .line-card .card-body{
          display: flex;
          flex-direction: row;
          align-items: center;
        }
        .line-card .card-body .line-icon{
          width: 150px;
          flex-grow: 0;
        }
        .line-card .card-body .line-directions{
          width: calc( 100% - 150px );
          padding-left: calc(1.5*var(--padding));
        }
        .line-card .card-body .line-directions h3{
          color: #000;
        }

        .line-card.line-m1{
          border-top: 15px solid var(--m1-color);
        }
        .line-card.line-m2{
          border-top: 15px solid var(--m2-color);
        }
        .line-card.line-m3{
          border-top: 15px solid var(--m3-color);
        }
        .line-card.line-m4{
          border-top: 15px solid var(--m4-color);
        }
