body {
	padding: 0;
	margin: 0;
}

html, body, #map {
  height: 100%;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 0px;
  padding: 0;
}

a:link, a:visited, a:hover, a.active {
  color: black;
}

.cairn-noseltext {
	user-select: none;
}

.cairn-red {
	color: red;
}

.cairn-trace-marker {
	background-image: url(icons/cairn-marker.png) !important;
}


.cairn-div-btn {
	display: inline-block;
	width: auto;
	background-color: rgba(0, 0, 0, .05);
	border: 1px solid #eeeeee;
	border-radius: 4px;
	margin: 6px;
	padding: 4px 6px 4px 6px;
  text-align: center;
	cursor: pointer;
	user-select: none;
}

.cairn-div-btn:hover {
	background-color: rgba(0, 0, 0, .16);
}	


/* LocationControl */

.cairn-location {
	width: 190px;	
}

.cairn-location-div {
  line-height: 20px;
  min-height: 20px;
	padding: 3px;
}

#cairn-location-source-1,#cairn-location-source-2 {
	width: 18px;
  height: 18px;
	float: left;
  margin-right: 8px;
	pointer-events: none;
}

#cairn-location-hr {
	display: none;
}

#cairn-location-div-2 {
	display: none;
}

.cairn-location-mouse {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18px' viewBox='0 -960 960 960' width='18px' fill='%23000000'%3E%3Cpath d='M551-80 406-392 240-160v-720l560 440H516l144 309-109 51Z'/%3E%3C/svg%3E");
}

.cairn-location-gps {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18px' viewBox='0 -960 960 960' width='18px' fill='%23000000'%3E%3Cpath d='M440-42v-80q-125-14-214.5-103.5T122-440H42v-80h80q14-125 103.5-214.5T440-838v-80h80v80q125 14 214.5 103.5T838-520h80v80h-80q-14 125-103.5 214.5T520-122v80h-80Zm238-240q82-82 82-198t-82-198q-82-82-198-82t-198 82q-82 82-82 198t82 198q82 82 198 82t198-82Zm-311-85q-47-47-47-113t47-113q47-47 113-47t113 47q47 47 47 113t-47 113q-47 47-113 47t-113-47Zm169.5-56.5Q560-447 560-480t-23.5-56.5Q513-560 480-560t-56.5 23.5Q400-513 400-480t23.5 56.5Q447-400 480-400t56.5-23.5ZM480-480Z'/%3E%3C/svg%3E");
}

.cairn-location-trace {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18px' viewBox='0 -960 960 960' width='18px' fill='%23000000'%3E%3Cpath d='M760-120q-39 0-70-22.5T647-200H440q-66 0-113-47t-47-113q0-66 47-113t113-47h80q33 0 56.5-23.5T600-600q0-33-23.5-56.5T520-680H313q-13 35-43.5 57.5T200-600q-50 0-85-35t-35-85q0-50 35-85t85-35q39 0 69.5 22.5T313-760h207q66 0 113 47t47 113q0 66-47 113t-113 47h-80q-33 0-56.5 23.5T360-360q0 33 23.5 56.5T440-280h207q13-35 43.5-57.5T760-360q50 0 85 35t35 85q0 50-35 85t-85 35ZM228.5-691.5Q240-703 240-720t-11.5-28.5Q217-760 200-760t-28.5 11.5Q160-737 160-720t11.5 28.5Q183-680 200-680t28.5-11.5Z'/%3E%3C/svg%3E");
	
}


/* SearchControl */

.cairn-search {
	width: 200px;
}

.cairn-search-top > * {
	display: inline-block;
	vertical-align: middle;
}

.cairn-search-icon {
	width: 20px;
  height: 20px;
	margin-left: 4px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px' fill='%23999999'%3E%3Cpath d='M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z'/%3E%3C/svg%3E");
}

.cairn-search-input {
	width: 140px;
  border: 0;
	/* border: 1px solid black; */
  background-color: transparent;
  margin: 0;
  height: 24px;
  color: #404040;
  color: rgba(0, 0, 0, 0.75);
  margin: 0px 5px 0px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.cairn-search-input:focus {
	outline: 0;
}

.cairn-search-button {
	width: 18px;
  height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18px' viewBox='0 -960 960 960' width='18px' fill='%23000000'%3E%3Cpath d='m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z'/%3E%3C/svg%3E");
}

.cairn-search-answers {
	max-height: 520px;
  overflow-y: scroll;
}

.cairn-search-answer {
	display: grid;
	grid-template-columns: 30px 1fr;
	grid-template-rows: repeat(2, 1fr);
	align-items: center;
	gap: 0px;	
	padding: 0 4px 0 6px;
	border: 1px solid #eeeeee;
	user-select: none;
	cursor: pointer;
	
}

.cairn-search-answer:hover {
	border: 1px solid white;
	background: #eeeeee;	
}

.cairn-search-answer-icon {
	grid-area: 1 / 1 / 3 / 2;
	width: 18px;
  height: 18px;
	pointer-events: none;
}

.cairn-search-answer-icon-place {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18px' viewBox='0 -960 960 960' width='18px' fill='%23000000'%3E%3Cpath d='m40-240 240-320 180 240h300L560-586 460-454l-50-66 150-200 360 480H40Zm521-80Zm-361 0h160l-80-107-80 107Zm0 0h160-160Z'/%3E%3C/svg%3E");
}

.cairn-search-answer-icon-topo {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18px' viewBox='0 -960 960 960' width='18px' fill='%23000000'%3E%3Cpath d='M520-40v-240l-84-80-40 176-276-56 16-80 192 40 64-324-72 28v136h-80v-188l158-68q35-15 51.5-19.5T480-720q21 0 39 11t29 29l40 64q26 42 70.5 69T760-520v80q-66 0-123.5-27.5T540-540l-24 120 84 80v300h-80Zm-36.5-723.5Q460-787 460-820t23.5-56.5Q507-900 540-900t56.5 23.5Q620-853 620-820t-23.5 56.5Q573-740 540-740t-56.5-23.5Z'/%3E%3C/svg%3E");
}


.cairn-search-answer-txt0 {
	grid-area: 1 / 2 / 2 / 3;
	pointer-events: none;
	overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;	
}

.cairn-search-answer-link {
	pointer-events: auto;
}

.cairn-search-answer-txt1 {
	grid-area: 2 / 2 / 3 / 3;
	pointer-events: none;
	font-size: 11px;
	overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;	
	color: #717171;
}

.cairn-search-viewbox {
	text-align: center;
}

.cairn-search-viewbox-btn {
	width: 130px;

}


/* WaypointControl */

.cairn-waypoint {
	width: 300px;
	padding: 20px;
}

.cairn-waypoint-label {
	
	
}

.cairn-waypoint-input {
	width: 140px;
  border: 0;
	border: 1px solid black; 
  background-color: transparent;
  margin: 0;
  height: 24px;
  color: #404040;
  color: rgba(0, 0, 0, 0.75);
  margin: 0px 5px 0px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.cairn-waypoint-footer {
	
}

.cairn-waypoint-button {
	border: 1px solid black !important;
  border-radius: 5px !important;
  width: 90px !important;
}


/* LayerControl */

.cairn-maps {
	width: 170px;
	
}

.cairn-maps-close::before {
  mask-image: url(data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 24 24%22 fill%3D%22currentColor%22%3E%3Cpath d%3D%22M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E);
  -webkit-mask-image: url(data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 24 24%22 fill%3D%22currentColor%22%3E%3Cpath d%3D%22M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E);
}

.cairn-maps-line {
	display: flex;
  align-items: center;
	cursor: pointer;
	width: calc(100% - 4px);
  padding: 4px 0px 4px 4px;
}

.cairn-maps-line:hover {
	background: #eeeeee;
}

.cairn-maps-line-select {
	background: #7ca6006e !important ;
}

.cairn-maps-line img {
	pointer-events: none;
	width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.cairn-maps-line div {
	pointer-events: none;
	margin-left: 10px;
}

.cairn-maps-separator {
  margin: 5px 0 5px 0;
}


/* SettingsControl */

.cairn-settings-main {
	width: 210px;
	height: 400px;
	display: grid;
	grid-template-columns: 42px 1fr;
	grid-template-rows: 1fr;
	grid-column-gap: 0px;
	grid-row-gap: 0px;
}

.cairn-settings-menu { 
	grid-area: 1 / 1 / 2 / 2; 
	padding: 10px 0 0 5px;
}

.cairn-settings-area { 
	grid-area: 1 / 2 / 2 / 3; 
  padding-top: 10px;

}


.cairn-settings-button {
	display: block;
  width: 26px;
  height: 26px;
  background-repeat: no-repeat;
  background-position: 50%;	
	margin: 2px;
	box-sizing: border-box;
}


.cairn-settings-button:hover {
	border: 1px solid #bbbbbb;
  border-radius: 4px;
}

.cairn-settings-button-layers {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23000000'%3E%3Cpath d='m600-120-240-84-186 72q-20 8-37-4.5T120-170v-560q0-13 7.5-23t20.5-15l212-72 240 84 186-72q20-8 37 4.5t17 33.5v560q0 13-7.5 23T812-192l-212 72Zm-40-98v-468l-160-56v468l160 56Zm80 0 120-40v-474l-120 46v468Zm-440-10 120-46v-468l-120 40v474Zm440-458v468-468Zm-320-56v468-468Z'/%3E%3C/svg%3E");
}

.cairn-settings-button-about {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23000000'%3E%3Cpath d='M440-280h80v-240h-80v240Zm68.5-331.5Q520-623 520-640t-11.5-28.5Q497-680 480-680t-28.5 11.5Q440-657 440-640t11.5 28.5Q463-600 480-600t28.5-11.5ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/%3E%3C/svg%3E");
}

.cairn-settings-pane {
	display: none;
}

.cairn-settings-pane-show {
	display: block;
}

.cairn-settings-map-title {
	margin: 5px 0 5px 0;
}

.cairn-settings-map-line {
	display: flex;
	align-items: center;
}


.cairn-settings-map-line-icon {
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16px' viewBox='0 -960 960 960' width='16px' fill='%23000000'%3E%3Cpath d='M607.5-372.5Q660-425 660-500t-52.5-127.5Q555-680 480-680t-127.5 52.5Q300-575 300-500t52.5 127.5Q405-320 480-320t127.5-52.5Zm-204-51Q372-455 372-500t31.5-76.5Q435-608 480-608t76.5 31.5Q588-545 588-500t-31.5 76.5Q525-392 480-392t-76.5-31.5ZM214-281.5Q94-363 40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200q-146 0-266-81.5ZM480-500Zm207.5 160.5Q782-399 832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280q113 0 207.5-59.5Z'/%3E%3C/svg%3E");
}

.cairn-settings-map-line-icon-hidden {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16px' viewBox='0 -960 960 960' width='16px' opacity='0.5' fill='%23000000'%3E%3Cpath d='m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z'/%3E%3C/svg%3E");
}


.cairn-settings-about-text {
	line-height: 16px;
  padding: 8px;
}

.cairn-settings-about-div {
	
}

.cairn-settings-about-div-bottom {
    position: absolute;
    bottom: 10px;
}

.cairn-settings-about-div > div {
	width: 130px;
}


/* LayerButtonControl */

.maplibregl-ctrl button.cairn-ctrl-maps .maplibregl-ctrl-icon { 
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23000000'%3E%3Cpath d='m600-120-240-84-186 72q-20 8-37-4.5T120-170v-560q0-13 7.5-23t20.5-15l212-72 240 84 186-72q20-8 37 4.5t17 33.5v560q0 13-7.5 23T812-192l-212 72Zm-40-98v-468l-160-56v468l160 56Zm80 0 120-40v-474l-120 46v468Zm-440-10 120-46v-468l-120 40v474Zm440-458v468-468Zm-320-56v468-468Z'/%3E%3C/svg%3E");
}

/* SettingsButtonControl */

.maplibregl-ctrl button.cairn-ctrl-settings .maplibregl-ctrl-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23000000'%3E%3Cpath d='m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z'/%3E%3C/svg%3E");
}

/* SearchButtonControl */

.maplibregl-ctrl button.cairn-ctrl-search .maplibregl-ctrl-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23000000'%3E%3Cpath d='M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z'/%3E%3C/svg%3E");
}

/* DrawButtonControl */

.maplibregl-ctrl button.cairn-ctrl-draw .maplibregl-ctrl-icon {
	background-color: black;
	mask: no-repeat 50% 50% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23000000'%3E%3Cpath d='M760-120q-39 0-70-22.5T647-200H440q-66 0-113-47t-47-113q0-66 47-113t113-47h80q33 0 56.5-23.5T600-600q0-33-23.5-56.5T520-680H313q-13 35-43.5 57.5T200-600q-50 0-85-35t-35-85q0-50 35-85t85-35q39 0 69.5 22.5T313-760h207q66 0 113 47t47 113q0 66-47 113t-113 47h-80q-33 0-56.5 23.5T360-360q0 33 23.5 56.5T440-280h207q13-35 43.5-57.5T760-360q50 0 85 35t35 85q0 50-35 85t-85 35ZM228.5-691.5Q240-703 240-720t-11.5-28.5Q217-760 200-760t-28.5 11.5Q160-737 160-720t11.5 28.5Q183-680 200-680t28.5-11.5Z'/%3E%3C/svg%3E");
}

.cairn-ctrl-draw-active span {
	background-color: red !important;
}

.maplibregl-ctrl button.cairn-ctrl-draw-erase .maplibregl-ctrl-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23000000'%3E%3Cpath d='M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z'/%3E%3C/svg%3E");
}

/* Export GPX Route */

.maplibregl-ctrl button.cairn-ctrl-export-rte .maplibregl-ctrl-icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' height='24px' width='24px' fill='%23000000'%3E%3Cpath d='M12,16L7,11L8.4,9.55l2.6,2.6V4h2v8.15l2.6-2.6L17,11l-5,5ZM6,20q-0.82,0-1.41-0.59T4,18V15H6v3H18V15h2v3q0,0.82-0.59,1.41T18,20H6Z'/%3E%3C/svg%3E");
}


