/* Routes */
.mapplic-element svg [id^=route] {
  display: none;
}

.mapplic-element svg [id^=route] > * {
  opacity: 0.3;
}

.loc-to,
.loc-from {
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 2px;
  margin-right: 10px;
}

.mapplic-routes-panel {
  background-color: #2f3434;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  /*color: #2f3434;*/
  color: #FFFFFF;
  position: absolute;
  bottom: 15px;
  right: 0;
  z-index: 10;
  /*margin: 12px;*/
  transition: width 0.2s, height 0.2s;
  /*padding-bottom: 40px;*/
  /*width: 240px;*/
  width: 400px;
  height: 250px;
}

.mapplic-routes-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  font-size: 15px;
  direction: rtl;
  margin: 15px 15px 10px;
}

.mapplic-routes-panel.mapplic-closed {
  /*width: 28px;*/
  height: 0;
  padding: 0;
  overflow: hidden;
}

.mapplic-routes-panel.mapplic-closed > *:not(.mapplic-routes-submit) {
  display: none;
}

.mapplic-routes-panel.mapplic-closed .mapplic-routes-submit {
  background-size: 16px 16px !important;
  margin: 0;
}

.mapplic-routes-panel small {
  border: 2px solid #231f20;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  float: left;
  display: block;
}

.mapplic-routes-select:first-child small {
  border-radius: 50%;
  transform: rotate(0deg);
}

.mapplic-routes-select.filled small {
  background-color: #231F20;
  transition: background-color 0.2s;
}

.mapplic-routes-select.filled:hover:not(.fixed) small {
  background-color: transparent;
  border-radius: 50%;
  transform: none;
  border: none;
}

.mapplic-routes-select.filled:hover:not(.fixed) small:after {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: bold;
  line-height: 8px;
  content: '\d7';
  position: relative;
  left: 5px;
}

.mapplic-routes-select.filled.fixed .mapplic-routes-loc {
  color: #888;
}

.mapplic-routes-select.filled.fixed small {
  background-color: #888;
  border-color: #888;
}

.mapplic-routes-close {
  background-image: url(../img/close.svg);
  background-size: 22px 22px;
  background-repeat: no-repeat;
  background-position: center;
  width: 26px;
  height: 26px;
  /*color: #888;*/
  cursor: pointer;
  /*font-size: 13px;*/
  /*position: absolute;*/
  /*bottom: 8px;*/
  /*left: 15px;*/
  transition: color 0.2s;
}

.mapplic-routes-close:hover {
  color: #2f3434;
}

.mapplic-routes-select {
  display: flex;
  align-items: center;
  border: 2px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  /*display: block;*/
  padding: 10px 12px;
  height: 40px;
  min-width: 240px;
  transition: border-color 0.2s;
  margin: 20px 15px;
  border-radius: 10px;
  background-color: #181818;
  direction: rtl;
}

.mapplic-routes-select.active {
  /*border-color: #6CB5F4;*/
  border-color: #4DF7C4;
  /*background-color: #fafafa;*/
  /*background-color: #181818;*/
}

.mapplic-routes-select.active small {
  color: #2f3434;
}

/* Placeholder text*/
.mapplic-routes-select span {
  /*color: #ccc;*/
  font-size: 14px;
  font-style: italic;
  line-height: 26px;
  padding-left: 10px;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.mapplic-routes-select.filled span {
  display: none;
}

/* Location holder */
.mapplic-routes-loc {
  font-size: 16px;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 10px;
  overflow: hidden;
}

.mapplic-routes-dots {
  width: 4px;
  height: 28px;
  left: 19px;
  margin-top: -14px;
  margin-left: -2px;
  position: absolute;
  pointer-events: none;
}

.mapplic-routes-dots > span {
  background-color: #ccc;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin: 4px 0;
}

.mapplic-routes-swap {
  background-image: url(../img/swap.svg);
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  /*border-radius: 3px;*/
  border-radius: 50%;
  cursor: pointer;
  /*opacity: 0;*/
  opacity: 1;
  width: 38px;
  height: 38px;
  /*margin-top: -12px;*/
  /*margin-left: -12px;*/
  position: absolute;
  /*right: 10px;*/
  right: 45%;
  top: 36%;
  transition: transform 0.2s, opacity 0.2s;
  background-color: #222222;
  border: 1px solid rgba(256, 256, 256, 0.2);
}

.mapplic-routes-swap.rotate {
  transform: rotate(180deg);
}

.mapplic-routes-panel:hover .mapplic-routes-swap {
  /*opacity: 0.3;*/
}

.mapplic-routes-swap:hover {
  /*opacity: 1 !important;*/
}


.mapplic-routes-submit {
  /*background: transparent url(../img/direction-icon.svg) no-repeat center !important;*/
  /*background-size: 24px 24px !important;*/
  border: none;
  border-radius: 15px;
  /*color: #fff;*/
  display: inline-block;
  /*width: 28px;*/
  width: calc(100% - 30px);
  /*height: 28px;*/
  height: 50px;
  position: absolute;
  /*right: 0;*/
  /*margin: 6px;*/
  /*right: 15px;*/
  left: 15px;
  bottom: 15px;
  padding: 0 !important;
  /*opacity: 0.8;*/
  transition: opacity 0.2s;
  background-color: #4DF7C4;
  color: #181818;
  font-size: 16px;
}

.mapplic-routes-submit-outbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 100px;
  right: 15px;
  width: 124px;
  height: 50px;
  background-color: #4DF7C4;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
}

.mapplic-routes-submit-outbox img {
  width: 25px;
  height: 25px;
}

.mapplic-routes-submit:hover, .mapplic-routes-submit-outbox:hover {
  background-color: #77FFD6 !important;
  /*opacity: 1;*/
}

.mapplic-routes-submit:focus, .mapplic-routes-submit-outbox:focus {
  outline: none;
  background-color: #77FFD6 !important;
}

/* Route path */
.mapplic-routes-path {
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: block;
}

/* Button */
.mapplic-routes-button {
  background-image: url(../img/direction-icon.svg);
  background-size: 16px 16px;
  bottom: 0;
  right: 0;
  display: none;
}

/* Icons */
.mapplic-routes .mapplic-list-location {
  position: relative;
  overflow: hidden;
}

.mapplic-routes-icon {
  background: url(../img/direction-arrow.svg) no-repeat center;
  cursor: pointer;
  width: 20px;
  height: 20px;
  /*opacity: 0.6;*/
  margin-right: auto;
  transform: scaleX(-1);
}

.mapplic-routes-icon:hover {
  /*opacity: 1;*/
}

.mapplic-routes .mapplic-list-location .mapplic-routes-icon {
  position: absolute;
  top: 12px;
  /*right: -30px;*/
  left: 10px;
  transform: scaleX(-1);
  transition: right 0.2s, opacity 0.2s;
}

.mapplic-routes .mapplic-list-location:hover .mapplic-routes-icon {
  left: 10px;
}

/* Accessible */
.mapplic-routes .mapplic-routes-wheelchair {
  background-color: transparent;
  background-image: url(../img/wheelchair.svg);
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 5px;
  border: none;
  position: absolute;
  opacity: 0.4;
  padding: 0;
  width: 26px;
  height: 26px;
  right: 40px;
  bottom: 7px;
  transition: opacity 0.2s, background-color 0.2s;
}

.mapplic-routes .mapplic-routes-wheelchair:focus {
  outline: none;
}

.mapplic-routes .mapplic-routes-wheelchair.enabled {
  background-color: #e4e4e4;
  opacity: 0.9;
}

/* Mobile */
/*@media all and (max-width: 667px) {*/
@media all and (max-width: 576px) {
  .mapplic-routes-panel {
    top: auto !important;
    bottom: 15px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .mapplic-legend {
    bottom: auto !important;
    top: 0;
  }
}

/* Map */
.mapplic-routes .mapplic-clickable {
  opacity: 1 !important;
}

.mapplic-routes .mapplic-active {
  fill: #f8f8f8;
}

.mapplic-routes g[id^=landmarks-large] .mapplic-active {
  fill: #555;
}

.mapplic-filtered svg [id^=landmark] > * {
  opacity: 1 !important;
}

.mapplic-routes-qr-modal {
  display: flex;
  justify-content: center;
  align-items: center;
}