/*
xamoom Wordpress Plugin
Copyright (C) 2015  xamoom GmbH

This file is part of xamoom-wordpress.

xamoom-wordpress is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

xamoom-wordpress is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with xamoom-wordpress.  If not, see <http://www.gnu.org/licenses/>.
*/

/**
 * All of the CSS for your public-facing functionality
 * Author: xamoom GmbH
 */

/*
 * Block wrapper
 */
.xamoom_block {
    width:100%;
    margin-bottom: 10px;
}

/*
 * Text formats
 */

.xamoom_title { }

.xamoom_caption { }

.xamoom_copyright {
    text-align:right;
    font-style: italic;
    font-size: 11px;
    margin-top: -5px;
    margin-right: 2px;
}

.xamoom_smalltext {
    margin-bottom: 0px;
}

.xamoom_link {
    margin-bottom: 0px;
    font-weight: bold;
}

.xamoom_audio {
    width:100%;
}

h3.xamoom_headline {
    margin-bottom: 2px;
}

.xamoom_image {
    width:100%;
    height:auto;
}

/*
 * Map
 */
.xamoom-map {
    height:500px;
}

/*
 * YOUTUBE VIDEO WRAPPER
 */
.xamoom-videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
}

.xamoom-videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/*
 * EMPTY HTML CLEANER
 */
p:empty {
  display: none;
}

.gallery-container {
    position: relative;
    margin: auto;
    margin-bottom: 10px;
}

.gallery-block-item {
}

#gallery-block-item-0 > p:nth-child(3) {
    margin-bottom: 5px;
}
.dot {
    
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.owl-nav {
    font-size: 1.7em;
    color: #868686;
    margin-top: 0px !important;
    position: relative;
    bottom: 10px;
}

.owl-prev, .owl-next {
    margin: 0px !important;
}

.owl-prev {
    float: left;
}

.owl-next {
    float: right;
}

.swipe-overlay1 {

    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 70%;
}

.swipe-overlay2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 70%;
}

.swipe-overlay3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 40%;
}

button.owl-dot.active > span {
    background: #868686 !important;
}

.owl-dots {
    margin: 0px !important;
}

.carousel-nav-icons {

    color: #D6D6D6;
}

.carousel-nav-icons:hover {
    color: #868686;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: transparent !important;
}

@media only screen and (max-width: 820px) {
    .owl-nav {
      display: none;
    }
  }
  @media only screen and (min-width: 820px) {

    .gallery-block-item > .xamoom-videoWrapper {
        transform: translateY(-10px)
    }
  }
  .owl-carousel .owl-item .owl-lazy {
  opacity: 1 !important; }

.gpx-icon {
    background-image: url(data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJtYXAtc2lnbnMiIGNsYXNzPSJzdmctaW5saW5lLS1mYSBmYS1tYXAtc2lnbnMgZmEtdy0xNiIgcm9sZT0iaW1nIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik01MDcuMzEgODQuNjlMNDY0IDQxLjM3Yy02LTYtMTQuMTQtOS4zNy0yMi42My05LjM3SDI4OFYxNmMwLTguODQtNy4xNi0xNi0xNi0xNmgtMzJjLTguODQgMC0xNiA3LjE2LTE2IDE2djE2SDU2Yy0xMy4yNSAwLTI0IDEwLjc1LTI0IDI0djgwYzAgMTMuMjUgMTAuNzUgMjQgMjQgMjRoMzg1LjM3YzguNDkgMCAxNi42Mi0zLjM3IDIyLjYzLTkuMzdsNDMuMzEtNDMuMzFjNi4yNS02LjI2IDYuMjUtMTYuMzggMC0yMi42M3pNMjI0IDQ5NmMwIDguODQgNy4xNiAxNiAxNiAxNmgzMmM4Ljg0IDAgMTYtNy4xNiAxNi0xNlYzODRoLTY0djExMnptMjMyLTI3MkgyODh2LTMyaC02NHYzMkg3MC42M2MtOC40OSAwLTE2LjYyIDMuMzctMjIuNjMgOS4zN0w0LjY5IDI3Ni42OWMtNi4yNSA2LjI1LTYuMjUgMTYuMzggMCAyMi42M0w0OCAzNDIuNjNjNiA2IDE0LjE0IDkuMzcgMjIuNjMgOS4zN0g0NTZjMTMuMjUgMCAyNC0xMC43NSAyNC0yNHYtODBjMC0xMy4yNS0xMC43NS0yNC0yNC0yNHoiPjwvcGF0aD48L3N2Zz4=);
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

.not-available-content {
    font-size: 24px;
    text-align: center;
    color: #888888;
    margin: 70px 0px 70px 0px !important;
}

.not-available-content i {
    margin-right: 10px;
}


a.location, a.time {
    cursor: pointer;
    color:  #444444;
}
a.location:hover, a.location:active, a.time:hover, a.time:active {
    color:  #444444;
}
.location div, .time div {
    margin-top: 10px;
}

.location p, .time p {
    display: inline-block;
    max-width: 85%;
    margin-bottom: 0px;
    margin-top: 0px !important;
}

.location i, .time i {
    margin: 3px;
}

.location i:before, .time i:before {
    clear: both;
}

.time-and-location {
  margin-bottom: 15px;
}

.spotmap-popup {
  position: absolute;
  width: 100%;
  height: 33%;
  bottom: -50%;
  z-index: 1001;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px;
}
.spotmap-popup h2 {
    padding-bottom: 3px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.spotmap-popup h2::before {
    content: none;
}
 .spotmap-popup .image-part {
    /* width: 30%; */
    }
.image-part img, .image-part div {    
      object-position: center;
      object-fit: cover;
      float: left;
}
.image-part img {
      margin-right: 5px;
}
.spotmap-popup .description {
    padding: 0px 5px 5px 5px;
    line-height: 1.5em;
    font-size: 1.5em;
    overflow: hidden;
    margin: 0;
}
.text-section a {
    float: right;
}

/* .spotmap-buttons {
  float: left;
  max-width: 55%;
} */
.spotmap-buttons a {
    background-color: #d7d7d7;
    color: black;
    display: grid;
    text-align: center;
    font-weight: bold;
    border-radius: 3px;
    font-size: 1.5em;
    max-width: 300px;
    text-decoration: none !important;
    text-decoration-line: none !important;
}
.spotmap-buttons a:link, .spotmap-buttons a:visited, .spotmap-buttons a:hover {
      color: inherit;
      text-decoration: none;
}
.xamoom-map .localize, .xamoom-map .expand {
    position:absolute;
    right:0;
    margin:10px;
    width:30px;
    height:30px;
    background-color:#fff;
    border:0;
    box-shadow: #646464 0px 2px 4px;
    display:block;
    overflow:hidden;
    outline:0;
    cursor:pointer;
    z-index:999;
    padding:6px;
    }
    
    .xamoom-map .localize .crosshair{
    background-image:url(images/crosshair.png);
    display:block;
    height:20px;
    width:20px;
    margin:5px;
    padding:0;
    }
    
    .xamoom-map a {
      text-decoration: none !important;
    }
    .xamoom-map .expand .fa-expand, .xamoom-map .localize .fa-crosshairs {
        font-size: 1.3em;
        padding: 0.1em;
        color: #333333;
    }

    @media only screen and (max-width: 600px) {
        .spotmap-popup .description {
            padding: 0px 5px 5px 5px;
            line-height: 1.25em;
            font-size: 1.25em;
            overflow: hidden;
            margin: 0;
        }
      }

      .contentbox {
        margin-bottom: 16px;
        background-color: #f0f0f0;
        padding: 0;
        position: relative;
      }
      
      .contentbox .box-header {
        letter-spacing: -0.2px;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.15;
        color: #444;
        padding: 9px 10px;
      }
      
      .contentbox .box-content {
        display: block;
        padding: 2px 10px 8px 10px;
      }
      
      .tour-stats-container {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        flex-direction: row;
        width: 100%;
      }
      
      .tour-stats-container>div {
        flex-grow: 1;
      }
      
      .tour-stats.tour-stats-big {
        font-size: 20px;
        font-weight: bold;
        line-height: 25px;
        height: 24px;
        margin-top: 0;
      }
      
      .tour-stats {
        font-size: 120%;
        line-height: 25px;
        display: block;
        position: relative;
        white-space: nowrap;
        padding: 0 5px 0 5px;
        margin-bottom: 0;
        margin-top: 3px;
        height: 21px;
      }
      
      .tour-stats .tour-stats-unit {
        font-size: 13px;
        font-weight: normal;
        display: inline-block;
        margin-left: 2px;
      }
      
      
      .tour-meta-label {
        border-top: 5px solid transparent;
        margin-right: 2px;
        padding-top: 2px;
        margin-top: 2px;
      }
      
      .tour-meta-label, .tour-rating-label {
        font-size: 93%;
        font-weight: normal;
        color: #2d2d2d;
      }
      
      .tour-info {
        position: absolute;
        min-width: 50%;
        bottom: 6%;
        right: 55px;
        z-index: 1001;
        background-color: rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 10px;
        border-radius: 10px;
      }
      
      .xamoom-map .info {
        bottom: 10px;
      }
      
      .xamoom-map .info i {
        color: black;
        font-size: 16px;
      }

      .mapboxgl-ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact:after {
        display: none;
      }
      
      .tour-stats.tour-stats-length {
        height: 48px;
        line-height: 55px;
      }
      
      .tour-stats.tour-stats-time {
        height: 48px;
        line-height: 55px;
      }
      
      .tour-meta-label-elevation {
          border-top-color: #f00;
      }
      
      .tour-meta-label-distance {
        border-top-color: #009bff;
      }
      .tour-meta-label-time {
          border-top-color: #7ed321;
      }
      
      .unitSwitch-wrap {
          box-sizing: border-box;
        width: 360px;
          border-bottom-right-radius: 3px;
        border-bottom-left-radius: 3px;
        position: absolute;
        bottom: 20px;
        right: 50px;
        z-index: 999;
      }
      .unitSwitch {
          float: right;
          margin-top: 1px;
          background-color: rgb(255, 255, 255);
          padding: 2px;
          -moz-box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
          -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
          border-radius: 2px;
      }
      .unitSwitch > a {
              box-sizing: border-box;
              font-family: arial; 
              display: block;
              float: left;
              padding: 8px 8px;
              font-size: 10px;
              line-height: 1;
              font-weight: 600;
              color: rgba(0,0,0,.4);
              color: #767b85;
              text-decoration: none;
              min-width: 62px;
              text-align:center;
            text-transform: uppercase;  
      }
      .unitSwitch > a:hover {
                  color: rgba(0,0,0,.5);
          }
      .unitSwitch > a.active {
                  background: #009dd4;   
                  color: white;      
                  text-rendering: optimizeLegibility;
                  border-radius: 2px;
              }
      
      @media (min-width: 992px) {
        .xamoom-map .info {
          bottom: 15px;
        }
        .unitSwitch-wrap {
          bottom: 25px;
        }
      }
  
.elevation-chart {
  margin-top: 10px;
}