#resor-map-container {
	margin: 20px 0;
	position: relative;
	z-index: 1;
}


#map {
	height: 500px;
}
.page-template-template-fullscreenmap #map {
	height: 100vh;
}
.page-template-template-fullscreenmap #resor-map-container{
	margin-top: 0;
	margin-bottom: 0;
}

@media screen and (min-width: 748px) {
	#map {
		height: 800px;
	}
}

@media screen and (min-width: 1024px) {
	#map {
		height: 600px;
	}
}

@media screen and (min-width: 1600px) {
	#map {
		height: 800px;
	}
}

.leaflet-control-attribution {
	font-size: 10px;
	opacity: 0.6;
}
.leaflet-control-attribution .leaflet-attribution-flag {
	display: none !important;
}


.flow-marker div {
	background: #0073aa;
	color: #fff;
	border-radius: 50%;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	border: 2px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transform-origin: center center;
}

.flow-marker div.plop {
	animation: markerPlop 0.32s ease-out;
}

@keyframes markerPlop {
	0%   { transform: scale(0.35); }
	35%  { transform: scale(1.18); }
	60%  { transform: scale(0.92); }
	80%  { transform: scale(1.06); }
	100% { transform: scale(1); }
}



#boundary-toggle {
	opacity: 0.5;
}

#boundary-toggle.active {
	opacity: 1;
}

.flow-marker div {
	background: #0073aa;
	color: #fff;
	border-radius: 50%;
	text-align: center;
	font-size: 10px;
	font-weight: 600;
	border: 2px solid #fff;

	display: flex;
	align-items: center;
	justify-content: center;
}



.resor-toolbar {
	display: flex;
	gap: 10px;
	align-items: center;
	
	padding-left: 20px;
	padding-right: 20px;
	background-color: #f7f7f7;
	margin-bottom: 0;
	padding-bottom: 10px;
	padding-top: 10px;
	
	
	position: sticky;
	top: 71px;
	z-index: 1001;
	max-width: 100%;
}
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-row-top,
.toolbar-row-bottom {
  justify-content: center;
}

.admin-bar .resor-toolbar {
	top: 103px;
}
@media screen and (min-width: 900px) {
	.resor-toolbar {
		top: 85px; 
	}
	.admin-bar .resor-toolbar {
		top: 117px;
	}
}

#resor-map-container .resor-toolbar {
	max-width: 100%;
}


.direction-switch{
	padding-left: 10px;
	padding-right: 10px;
	border-left: solid 1px #dfdfdf;
	border-right: solid 1px #dfdfdf;
}

.direction-switch button{
	border: solid 1px #dfdfdf;
	background-color: white;
	color: #929292;
	padding: 15px 12px 12px;
	font-size: 16px;
	line-height: 16px;
}
.direction-switch button:hover{
	border-color: #ccc;
}

.direction-switch .arrows{
	display: inline-block;
	width: 12px;
	height: 22px;
	background-image: url('../images/pilar-till.svg');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}
.direction-switch.toactive .arrows{
	background-image: url('../images/pilar-till.svg');
}
.direction-switch.fromactive .arrows{
	background-image: url('../images/pilar-fran.svg');
}

.direction-switch button.is-active.to{
	background-color: #009f80;
	color: white;
}
.direction-switch button.is-active.from{
	background-color: #d2514c;
	color: white;
}


.ui-selectmenu-button {
	border: 1px solid #dfdfdf;
	border-radius: 6px;
	background: #fff;
	padding: 15px 12px 10px;
	font-size: 14px;
}
.ui-button .ui-icon, .ui-state-hover .ui-icon, .ui-state-focus .ui-icon, .ui-button:hover .ui-icon, .ui-button:focus .ui-icon{
	background-image: url('../images/dropdown-arrow.svg');
	background-position: center center;
	background-size: 15px 15px;
	background-repeat: no-repeat;
}

.ui-selectmenu-button:hover {
	background-color: #fff;
	border-color: #bbb;
}

.ui-selectmenu-button.ui-state-focus {
	border-color: #009f80;
}

.ui-selectmenu-text {
	font-size: 16px;
	line-height: 18px;
	color: #191919;
	font-family: 'SofiaProSemiBold';
}

/* dropdown */
.ui-menu {
	border-radius: 6px;
	border: 1px solid #dfdfdf;
	max-height: 250px;
	overflow-y: auto;
	font-size: 14px;
	line-height: 16px;
}

/* hover item */
.ui-menu-item-wrapper.ui-state-active {
	background: #009f80;
	color: #fff;
}


/* OR text */
.resor-separator {
	font-size: 14px;
	line-height: 14px;
	color: #191919;
	font-family: 'SofiaProSemiBold';
}



.boundary-control {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* LABEL */
#boundary-label {
	font-size: 14px;
	line-height: 14px;
	color: #191919;
	user-select: none;
	font-family: 'SofiaProSemiBold';
}

/* BUTTON (track) */
#boundary-switch {
	position: relative;
	width: 60px;
	height: 30px;

	background: #ddd;
	border: none;
	border-radius: 20px;

	cursor: pointer;
	padding: 0;

	transition: background 0.2s ease;
}

/* KNOB */
#boundary-switch .knob {
	position: absolute;
	top: 5px;
	left: 5px;

	width: 20px;
	height: 20px;

	background: #fff;
	border-radius: 50%;

	box-shadow: 0 1px 3px rgba(0,0,0,0.3);

	transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

/* ACTIVE STATE */
#boundary-switch[data-active="true"] {
	background: #a73770; 
}

#boundary-switch[data-active="true"] .knob {
	left: 34px;
}

/* HOVER */
#boundary-switch:hover {
	background: #ccc;
}

#boundary-switch[data-active="true"]:hover {
	background: #8f2f60;
}

#boundary-switch:focus {
	outline: none;
}


@media screen and (max-width: 940px) {
	
	.resor-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	
	.toolbar-row {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: center;
		gap: 10px;
	}

	.toolbar-row-top {
		margin-bottom: 10px;
	}
	
	.resor-toolbar{
		padding-left: 10px;
		padding-right: 10px;
		padding-top: 6px;
		padding-bottom: 6px;
	}
	
	.direction-switch{
		border-style: none;
		border-right: solid 1px #dfdfdf;
	}
	
	.direction-switch button {
		padding: 11px 9px 9px;
		font-size: 13px;
		line-height: 13px;
	}
	#boundary-label, .resor-separator{
	  font-size: 12px;
	  line-height: 12px;
  }
  .ui-selectmenu-text{
	  font-size: 13px;
	  line-height: 15px;
  }
  .ui-selectmenu-button{
	  padding: 10px 8px 8px;
  }
  #boundary-switch{
	  width: 35px;
	  height: 20px;	  
  }
  #boundary-switch[data-active="true"] .knob {
	left: 20px;
  }
  #boundary-switch .knob {
	top: 5px;
	left: 5px;
	width: 10px;
	height: 10px;
  }
	
}