.leaflet-hidden {
  visibility: hidden;
}

.legend {
  cursor: pointer;
}

.leaflet-container {
  z-index: 0;
  /* prevent overlapping the .elevation-detached chart */
}

.elevation-control .background {
  background-color: var(--ele-bg, rgba(70, 130, 180, 0.2));
  border-radius: 5px;
  overflow: visible;
  display: block;
  touch-action: none;
  user-select: none;
  max-width: 100%;
}

.elevation-control .grid,
.elevation-control .area > foreignObject,
.elevation-control .axis,
.elevation-control .tooltip,
.height-focus.line {
  pointer-events: none;
}

.elevation-control .axis line,
.elevation-control .axis path {
  stroke: var(--ele-axis, #2D1130);
  stroke-width: 1;
  fill: none;
}

.elevation-control .grid .tick line {
  stroke: var(--ele-grid, #EEE);
  stroke-width: 1px;
  shape-rendering: crispEdges;
}

.elevation-control .grid path {
  stroke-width: 0;
}

.elevation-control .axis text,
.elevation-control .legend text,
.elevation-control .point text {
  fill: #000;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: #fff;
  stroke-width: 2px
}

.elevation-control .y.axis text {
  text-anchor: end;
}

.elevation-control .area {
  fill: var(--ele-area, #4682B4);
  stroke: var(--ele-stroke, #000);
  stroke-width: 1.2;
  paint-order: stroke fill;
}

.elevation-control .horizontal-drag-line {
  cursor: row-resize;
  stroke: transparent;
  stroke-dasharray: 5;
  stroke-width: 1.1;
}

.elevation-control .active .horizontal-drag-line {
  stroke: #000;
}

.elevation-control .horizontal-drag-label {
  fill: #000;
  font-weight: 700;
  paint-order: stroke;
  stroke: #FFF;
  stroke-width: 2px;
}

.elevation-control .ruler {
  color: #000;
  cursor: row-resize;
}

.elevation-control .mouse-focus-line {
  stroke: #000;
  stroke-width: 1;
}

.elevation-control .mouse-focus-label-rect {
  fill: #000;
  fill-opacity: 0.75;
  stroke-width: 1;
  stroke: #444;
}

.elevation-control .mouse-focus-label-text {
  fill: #FFF;
  font-size: 10px;
}

.elevation-control .brush .overlay {
  cursor: unset;
}

.elevation-control .brush .selection {
  fill: var(--ele-brush, rgba(23, 74, 117, 0.4));
  stroke: none;
  fill-opacity: unset;
}

.elevation-summary {
  font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  margin: var(--ele-sum-margin, 0 auto);
  text-shadow: var(--ele-sum-shadow, 1px 0 0 #FFF, -1px 0 0 #FFF, 0 1px 0 #FFF, 0 -1px 0 #FFF, 1px 1px #FFF, -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF);
}

.elevation-summary>span:not(:last-child):after {
  content: var(--ele-sum-sep, '');
}

.multiline-summary>span {
  display: block;
}

.multiline-summary .download {
  float: right;
  margin-top: -3em;
  margin-right: 2em;
  font-weight: bold;
  font-size: 1.2em;
}

.elevation-summary .summaryvalue {
  font-weight: bold;
}

.elevation-toggle-icon {
  background-color: #fff;
  right: 5px;
  top: 5px;
  height: var(--ele-toggle-size, 36px);
  width: var(--ele-toggle-size, 36px);
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  display: inline-block;
  position: var(--ele-toggle-pos, relative);
}

.elevation-toggle-icon:before {
  content: '\2716';
  display: var(--ele-close-btn, none);
  color: #000;
  width: 100%;
  line-height: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
}

.leaflet-elevation-pane .height-focus,
.leaflet-overlay-pane .height-focus {
  stroke: #000;
  fill: var(--ele-circle, var(--ele-area, #FFF));
}

.leaflet-elevation-pane .height-focus.line,
.leaflet-overlay-pane .height-focus.line {
  stroke-width: 2;
}

.leaflet-elevation-pane .height-focus-label,
.leaflet-overlay-pane .height-focus-label {
  font-size: 12px;
  font-weight: 600;
  fill: #000;
  paint-order: stroke;
  stroke: #FFF;
  stroke-width: 2px;
}

.elevation-waypoint-icon:before,
.elevation-position-icon:before {
  content: "";
  width: 100%;
  height: 100%;
  display: inline-block;
  background: var(--ele-marker) no-repeat center center / contain;
}

.elevation-polyline {
  stroke: var(--ele-poly, var(--ele-area, #000));
  filter: drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);
}

/* CHART STATES /////////////////////////////////////////////////// */

.elevation-detached {
  font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
  height: auto;
  width: 100%;
  position: relative;
  z-index: 0;
}

.elevation-detached .area {
  fill-opacity: var(--ele-alpha, 0.8);
}

.elevation-detached.elevation-collapsed .elevation-summary {
  display: block;
}

.elevation-detached.elevation-collapsed .elevation-toggle-icon {
  top: 5px;
  right: 9px;
  bottom: 5px;
  margin: auto;
}

.elevation-control.elevation-collapsed > * {
  display: none;
}

.elevation-control.elevation-collapsed > .elevation-toggle-icon {
  display: inline-block;
}

.elevation-detached {
  --ele-sum-margin: 12px 35px;
  --ele-sum-shadow: none;
  --ele-toggle-pos: absolute;
}

.elevation-expanded {
  --ele-close-btn: inline-block;
  --ele-toggle-bg: none;
  --ele-toggle-pos: absolute;
  --ele-toggle-size: 20px;
}

.inline-summary {
  --ele-sum-sep: "\0020\2014\0020";
}

.elevation-waypoint-icon {
  --ele-marker: url(../images/elevation-pushpin.svg);
}

.elevation-position-icon {
  --ele-marker: url(../images/elevation-position.svg);
}

/* LIME THEME ///////////////////////////////////////////////////// */

.lime-theme {
  --ele-bg: rgba(156, 194, 34, 0.2);
  --ele-axis: #566B13;
  --ele-area: #9CC222;
  --ele-grid: #CCC;
  --ele-brush: rgba(99, 126, 11, 0.4);
  --ele-poly: #566B13;
  --ele-line: #70ab00;
}

/* STEELBLUE THEME //////////////////////////////////////////////// */

.steelblue-theme {
  --ele-axis: #0D1821;
  --ele-area: #4682B4;
  --ele-brush: rgba(23, 74, 117, 0.4);
  --ele-line: #174A75;
}

/* PURPLE THEME /////////////////////////////////////////////////// */

.purple-theme {
  --ele-bg: rgba(115, 44, 123, 0.2);
  --ele-area: #732C7B;
  --ele-brush: rgba(74, 14, 80, 0.4);
  --ele-line: #732c7b;
}

/* YELLOW THEME /////////////////////////////////////////////////// */

.yellow-theme {
  --ele-area: #FF0;
}

/* RED THEME ////////////////////////////////////////////////////// */

.red-theme {
  --ele-area: #F00;
}

/* MAGENTA THEME ////////////////////////////////////////////////// */

.magenta-theme {
  --ele-bg: rgba(255, 255, 255, 0.47);
  --ele-area: #FF005E;
}

/* LIGHTBLUE THEME //////////////////////////////////////////////// */

.lightblue-theme {
  --ele-area: #3366CC;
  --ele-alpha: 0.45;
  --ele-stroke: #4682B4;
  --ele-circle: #fff;
  --ele-line: #000;
}

.elevation-detached.lightblue-theme .area {
  stroke: #3366CC;
}

/* leaflet-distance-markers */

.dist-marker {
  font-size: 0.5rem;
  border: 1px solid #777;
  border-radius: 10px;
  text-align: center;
  color: #000;
  background: #fff;
}


		.elevation-tooltip.leaflet-tooltip,
		.elevation-popup .leaflet-popup-content {
			text-align: center;
			font-weight: 300;
			width: 300px !important;
			white-space: normal;
			padding: 0;
			margin: 0;
			border-radius: 12px;
		}

		.elevation-tooltip>b:first-child,
		.elevation-popup .leaflet-popup-content>b:first-child {
			display: inline-block;
			width: 100%;
			text-align: center;
			font-family: 'averia_seriflightitalic', 'Alexander', serif;
			font-size: 20px;
			font-weight: 700;
			border-radius: 8px 8px 0px 0px;
			border: 1px solid #bbb;
			background: #303030;
			color: #ccc;
			text-shadow: -1px 0px 1px #000;
			box-sizing: content-box;
			margin-left: -1px;
		}

		.elevation-tooltip .wpt-link-image img,
		.elevation-popup .leaflet-popup-content .wpt-link-image img {
			height: 100%;
			width: 300px;
			max-height: 230px;
			object-fit: cover;
			display: block;
		}

		.elevation-tooltip .wpt-link-image,
		.elevation-popup .leaflet-popup-content .wpt-link-image {
			display: inline-block;
		}

		.elevation-tooltip .wpt-desc,
		.elevation-popup .leaflet-popup-content .wpt-desc {
			border-top: solid 1px #ccc;
			margin-top: 5px;
			padding-top: 5px;
			color: #000;
			font-weight: bold;
			text-align: center;
		}

		/** POI icon */
		.elevation-waypoint-icon.poi::before {
			background-image: url(../images/elevation-poi.png);
		}

		/** PEAK icon */
		.elevation-waypoint-icon.peak::before {
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='811' height='811'%3E%3Cpath fill='%23201c18' d='M160 83c-18 14-34 29-50 45A392 392 0 0 0 8 325l-7 51A405 405 0 1 0 160 83Z'/%3E%3Cpath fill='%23f6c501' d='m784 528 9-33a460 460 0 0 0 9-104 400 400 0 0 0-133-283 402 402 0 0 0-557 29 396 396 0 0 0-87 382l4 16c1 2 2 5 4 6s5-2 7-3l18-14c11-8 24-13 34-22 12-12 19-27 32-39l44-41 15-9c11-8 22-19 31-29 11-13 14-32 28-44 4-3 10-3 14-6 8-4 13-11 21-14 11-4 24-5 34-13l5-9 12-12c5-4 12-4 17-8 4-2 5-7 9-9 7-6 16-9 23-14l16-11 8-5c20-2 34 13 47 26 10 10 24 16 33 27l21 29c4 7 8 15 14 20 14 13 33 18 50 25 7 3 13 9 20 12l33 9c5 1 10 2 14 5 13 10 19 24 31 33l15 11 27 22 52 38c10 9 14 26 26 32M403 243l3 1-3-1'/%3E%3Cpath fill='%23fef9e9' d='m403 244-2 16c1 16 6 31 4 47-2 12-14 21-14 34 0 4 4 7 4 11 1 3-1 6-1 9 0 5 1 12 3 16 3 6 10 11 10 18 0 4-1 9-3 12-4 4-11 8-10 14 1 5 7 7 9 11 3 6 1 11 1 17-9-3-8-11-13-17-5-7-14-12-16-21-1-8 4-15 3-23-2-8-7-14-6-23 1-6 6-10 6-17-11 6-18 16-23 27-1 4-4 8-3 12 2 10 13 14 13 25l-14-2c-5-2-10-5-15-5-3 1-9 3-10 6-1 5 3 12 4 17 4-2 10-10 15-6 8 6-4 19 0 27 2 4 6 10 10 13 3 2 9 0 11 5 2 4 0 8-1 12-1 5-2 12 1 16 1 3 5 7 8 9 2 1 5 1 6 3 3 2 5 8 5 12 2 10-5 14-7 22-2 5 1 11 3 15 4-4 3-8 5-13 3-4 8-6 10-10s1-10 0-14c0-4 0-9-2-13-3-7-12-14-12-22 0-4 4-5 6-8 4-6 5-14 12-18 4-2 8 0 12-3s6-8 9-12 11-8 16-10c5-1 14-2 19 1 3 2 4 8 7 12 5 6 16 9 23 6v-2l-9-7c-6-7-8-17 2-21l32-10c6-2 12-4 15-10-7-5-16-5-23-9-6-3-9-10-11-16 4 0 8 1 11-2 4-3 7-10 13-10 4 0 7 5 9 8l17 27c8-1 16-3 25-3l15 3 16-1c9-1 21-4 29 1 5 4 4 12 5 18 1 5 5 9 6 14 0 4-2 7-3 11l-8-3c-1 2-2 5-1 7 0 2 3 3 5 5 4 2 8 4 11 8l18 23 6 12 8 12c4 9 0 20 11 24l-4 5c-11 9-19-5-26-12-15-16-21-38-36-54-5-5-11-15-19-12 1 6 9 10 9 16 1 4-3 7-3 11 0 6 3 12 2 18-1 4-4 8-4 12 0 3 2 5 3 8 0 5-2 17-8 18-3 1-6-1-9-1l2 8 8 8 15 17-6 3c4 7 12 10 19 14 5 3 10 9 13 15 4 9 1 20 5 29 2 7 11 10 13 18 3 8 1 17 2 25 2 8 7 15 12 21l11-9c4-4 10-8 11-13 2-5-4-11-5-15-3-6-3-14-5-20-3-5-8-9-9-14v-9c7 5 12 14 21 15-1-14-14-23-20-35-5-9-3-20-4-30-1-5-4-9-4-14-1-15 31-10 26-27l-7-17c-1-4 0-8-2-12-3-6-8-10-11-15l-4-11c-2-9-6-19 5-23 2 6 5 11 9 16h2l2-10 10 3c-11-13-28-20-40-32-10-10-17-25-30-31-14-8-30-9-45-14-7-2-13-8-20-11-18-8-37-13-52-27-5-5-8-11-12-17-7-11-14-22-23-32-8-10-20-15-29-24-7-7-15-17-24-22-6-3-14-4-21-4z'/%3E%3Cpath fill='%23201c18' d='M440 274c1 5 3 8 6 12-6 2-9 2-15 1 2 7 9 9 11 16h-16c1 5 5 8 8 13 2 4 2 8 2 13h-4c1 6 6 9 9 14l14 23c2 5-1 10 0 15 0 5 4 8 7 11 5 5 11 17 20 15-5-8-13-14-16-22-5-10-2-23-2-34 0-6-3-12-4-18v-12c6 5 9 13 15 19 6 5 13 6 19 11 4 2 10 9 14 9 2 1 5-1 7-2-4-15-22-23-32-34-3-4 2-7 0-12-6-12-18-20-27-28-5-4-9-9-16-10z'/%3E%3Cpath fill='%23fef9e9' d='M254 402c-15 5-26 15-37 26-3 3-10 5-11 8-2 3-1 7-1 10l-5 14c0 5 3 10 4 15 1 8-5 22 5 26 8 3 15-14 18-20 4-9 2-18 6-27 5-12 17-21 21-33 2-6 1-13 0-19zm504 184c4-4 7-11 9-16l10-23c1-4 4-10 3-14-2-8-12-17-16-24-6-10-17-17-26-24-2-1-8-7-11-4-3 2-1 6 0 8 3 7 11 11 13 18 2 4 0 8 0 12l2 23c2 8 7 15 11 23 3 6 4 14 5 21zm-642-76c0 14 1 30 5 44 3 12 10 22 15 33l10 23c4 12 4 27 12 37l17 18c13 9 27 15 38 27l11 17c2 5 3 11 6 15 4 7 11 12 17 18l9 13c7 8 16 16 25 23 10 7 26 7 37 10 6 2 10 7 16 8 22 6 47 7 70 7-1-6-2-16-6-21-10-11-26-12-40-14l-32-8h-18l-21-4c0-5 1-10-1-14-3-11-12-17-21-23l-12-8c-12-5-31-8-37-22-7-14-6-28-3-43 0-5 0-10 2-15 5-11 17-23 15-36 0-7-2-16-5-22l-11-15c-3-4-5-9-9-12-7-5-18-8-26-9-11-3-22 1-33-4-11-4-20-16-30-23zm-65 75h2c2-6 3-15 7-20 6-7 25-1 26-16l-2-5c-10 2-21 7-30 13-4 2-9 7-10 12 0 5 4 12 7 16zm425-18v2c4 2 12 7 13 12 0 6-6 8-2 15 4 5 8 6 13 9 3 3 6 9 6 14 0 9-8 15-9 23-1 9 4 16 6 24 2 5 0 11 1 16 2 13 11 18 22 23l-1-19c10 4 16 12 17 23 0 5-2 9 1 14 8 15 24 25 29 42 9-1 17-7 25-11-3-17-22-20-33-31-8-9-9-26-10-37h5v-8c-2-3-5-4-8-6l-16-14c-5-7-3-17-3-25 6 2 11 5 14-2-5-2-6-6-6-11 9 3 16 7 25 2-6-5-15-4-22-8l-20-14-16-11-18-22c-4-4-8-2-13 0z'/%3E%3C/svg%3E");
		}

