/***************************************
    leaflet map
***************************************/
.map {
  height: 500px;
}

/***************************************
    leaflet-elevation
***************************************/
.track-style {
  color: red;
  opacity: 0.6;
}

.track-style-2 {
  color: blue;
  opacity: 0.6;
}

.trackbib-theme .leaflet-control.elevation .background {
  background-color: #FFFFFF;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px
}

.trackbib-theme .leaflet-control.elevation .axis line, .trackbib-theme .leaflet-control.elevation .axis path {
  fill: none;
  stroke: #000000;
  stroke-width: 2
}

.trackbib-theme .leaflet-control.elevation .area {
  fill: #73AE2C
}

.trackbib-theme .leaflet-control.elevation .mouse-focus-line {
  pointer-events: none;
  stroke-width: 1;
  stroke: #000000
}

.trackbib-theme .leaflet-control.elevation .elevation-toggle {
  cursor: pointer;
  box-shadow: 0 1px 7px #333;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  width: 36px;
  height: 36px;
  background: url(/javax.faces.resource/lib/leaflet-elevation/elevation.png.html?ln=map) no-repeat center center #fff
}

.trackbib-theme .leaflet-control.elevation-collapsed .background {
  display: none
}

.trackbib-theme .leaflet-control.elevation-collapsed .elevation-toggle {
  display: block
}

.trackbib-theme .leaflet-control.elevation .mouse-drag {
  fill: rgba(183, 244, 110, .4)
}

.trackbib-theme .leaflet-overlay-pane .height-focus {
  stroke: #73AE2C;
  fill: #73AE2C
}

.trackbib-theme .leaflet-overlay-pane .height-focus.line {
  pointer-events: none;
  stroke-width: 2
}

/***************************************
    leaflet-easy-button
***************************************/
.map-control {
  font-size: 18px;
  text-align: center;
  vertical-align: middle;
}

.glyphicon-spin {
  -webkit-animation: spin 1500ms infinite linear;
  animation: spin 1500ms infinite linear;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate (359deg);
  }
}

.leaflet-touch .leaflet-bar a {
  line-height: 26px;
}

/***************************************
    sidebar
***************************************/
.map-sidebar-img-container .map-sidebar-img {
  display: block;
  max-height: 100%;
  max-width: 100% !important;
  margin-right: auto;
  margin-left: auto;
  width: auto;
}

.map-sidebar-img-container {
  height: 35%;
}

.map-sidebar-img-container.edit {
  height: 20%;
}

.leaflet-sidebar .close {
  z-index: 9999;
}

.sidebar-paragraph {
  margin-botton: 10px;
}

.sidebar-rating-table tr td:first-child {
  text-align: right;
  padding-right: 5px;
}

.sidebar-rating-table:not(:empty) {
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
}

.date-top-margin {
  margin-top: 30px;
}

/***************************************
    popup
***************************************/
.map-popup .leaflet-popup-content, .secondary-action-popup .leaflet-popup-content
  {
  text-align: center;
  font-size: 1.2em;
  margin-right: 25px;
}

.secondary-action-popup .leaflet-popup-content {
  margin-left: 29px;
}

.map-popup label, .secondary-action-popup label {
  margin-bottom: 0;
}

.map-popup .leaflet-popup-close-button, .secondary-action-popup .leaflet-popup-close-button
  {
  color: #539700 !important;
  top: 5px !important;
  right: 5px !important;
}

.leaflet-popup-secondary-button {
  left: 5px;
  padding-left: 4px !important;
}

/***************************************
    Spot Popups
***************************************/

.leaflet-popup-content .ajax-loading-bar {
  width: 150px;
}

/***************************************
    Spot Result List
***************************************/
.spot-results {
  padding-right: 0;
  padding-left: 0;
}

.spot-results > div {
  padding: 5px;
}

.spot-results > div:hover {
  background-color: #f5f5f5;
}

.spot-results > div:nth-child(n+2) {
  border-top: solid #999999 1px;
}

@media ( min-width : 768px) {
  .spot-results {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
  }
}

/***************************************
    numbered image icons
***************************************/
.leaflet-marker-icon .number {
  color: #FFFFFF !important;
  font-weight: bold;
  position: relative;
  top: -39px;
  font-size: 18px;
  text-align: center;
}

.image-number {
  top: -35px !important;
}
/***************************************
    leaflet-search
***************************************/
.leaflet-control-search {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

.leaflet-control-search .search-button {
  width: 26px;
  height: 26px;
  background-position: 3px 2px;
}

.leaflet-control-search .search-button:hover {
  background: url(/javax.faces.resource/lib/leaflet-search/search-icon.png.html?ln=map) no-repeat 3px 2px;
}

.leaflet-container .leaflet-control-search {
  font-size: 1.1em;
  color: black;
  background-color: #fff;
  margin-top: 11px;
  margin-bottom: 2px;
}

.leaflet-control-search.search-exp {
  margin-top: 10px;
  margin-bottom: 0;
}

.leaflet-container .leaflet-control-search:hover {
  background-color: #f4f4f4;
}

.leaflet-control-search .search-cancel {
  margin: 5px;
}

.leaflet-control-search .search-input {
  height: 21px;
  margin: 4px 0 4px 4px;
}

.search-marker-popup {
  margin-left: 25px;
}

.search-marker-save-button {
  left: 5px;
  right: auto;
}

.leaflet-container .leaflet-control-search {
  z-index: 9999;
}

/***************************************
    map_print
***************************************/
.mapPage {
  page-break-before: always;
}

.map-overview {
  margin-bottom: 5px;
}

.map-overview > div {
  height: 480px;
}

.map-overview-statistics {
  float: left;
}

.map-overview-map {
  position: relative;
  left: 0;
  right: 200px;
}

.map-label {
  position: absolute;
  height: 20px;
  width: 50px;
  display: inline-block;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  color: #333 !important;
  background-color: #fff !important;
}

.map-label-red {
  color: #fff !important;
  background-color: #d9534f !important;
}

.map-label-top {
  top: 0;
  left: 50%;
  right: 50%;
}

.map-label-top-right {
  top: 0;
  right: 0;
}

.map-label-bottom {
  bottom: 0;
  left: 50%;
  right: 50%;
}

.map-label-right {
  right: -15px;
  top: 50%;
  bottom: 50%;
  transform: rotate(270deg);
}

.map-label-left {
  left: -15px;
  top: 50%;
  bottom: 50%;
  transform: rotate(90deg);
}

.map-label-overview, .map-label-overview:before, .map-label-overview:after {
  z-index: 75 !important;
  border: none;
  border-radius: 0;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  color: #333 !important;
  background-color: #fff !important;
}

.poi-tile-header {
  clear: both;
  margin-bottom: 5px;
}

.poi-tile-header > strong {
 display: inline-block;
}

.poi-tile-header > div {
  float: right;
}

.poi-tile-container {
  clear: both;
}

.poi-tile {
  width: auto;
  border-color: black;
  border-width: 2px;
  border-style: solid;
  margin-bottom: 2px;
  margin-right: -4px;
  padding: 5px;
  display: inline-block;
  vertical-align: top;
}

.poi-tile > img {
  float: left;
  width: 150px;
}

.poi-tile > img {
  display: block;
}

.glyphicon-map-marker {
  margin-right: -5px;
}

.print-tour-header {
  width: 100%;
  clear: both;
  min-height: 35px;
}

.print-tour-header-left {
  float: left;
  width: 50px;
}

.print-tour-header-right {
   float: right;
   width: 125px;
}

.print-tour-header-right > img {
   width: 100px;
}

.print-tour-header-middle {
   text-align: center;
}

.print-tour-elevation {
  height: 130px;
  width: 100%;
  position: relative;
}

.print-tour-elevation > img.qr {
  position: absolute;
  right: 0;
}

.print-tour-elevation > #elevationDiv {
  position: absolute;
  left: 0;
  right: 130px;
}

.print-tour-stage-text-overview {
  margin-top: 20px;
}

