/* Routes */
.blumaps-element svg [id^=route] {
	display: none;
}

.blumaps-element svg [id^=route] > * {
	opacity: 0.3;
}

.loc-to,
.loc-from {
	padding: 4px 6px;
	border: 1px solid #ddd;
	border-radius: 2px;
	margin-right: 10px;
}

/** Painel de rotas manuais **/
.blumaps-routes-panel {
	background-color: #fff;
	box-shadow: 0 0 8px 5px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
	color: #2f3434;
	position: absolute;
	bottom: 0px;
	left: 0;
	margin: 10px;
	transition: width 0.2s, height 0.2s;
	width: 300px;
	height: 150px;	
}

.blumaps-routes-panel.open {
	left: 403px !important;
}

.blumaps-routes-panel.blumaps-closed {
	background: no-repeat 9px;
    background-image: url(../../assets/buttons/route.png);
    background-size: 27px 27px;	
	background-color: var(--primary-color) !important;
	box-shadow: none;	
	cursor: pointer;
	display: block;	
	width: 45px;
	height: 45px;
	border-radius: 45px;
	border: none;	
}

.blumaps-routes-panel.blumaps-closed > *:not(.blumaps-routes-submit) {
	display: none;
}

.blumaps-routes-panel.blumaps-closed .blumaps-routes-submit {
	background-size: 20px 20px !important;
	margin: 0;
	width: 45px;
	height: 45px;	
}

.blumaps-routes-panel small {
	border: 2px solid #231f20;
	box-sizing: border-box;
	width: 8px;
	height: 8px;
	margin-top: 8px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	float: left;
	display: block;
}

.blumaps-routes-panel:hover .blumaps-routes-swap {
	opacity: 0.3;
}

/* Mobile */
@media all and (max-width: 667px) {
	.blumaps-routes-panel {
		visibility: hidden;
	}

	.blumaps-legend {
		bottom: auto !important;
		top: 0;
	}
}

/** Seletor de local from e to no painel de rotas **/
.blumaps-routes-select:first-child small {
	border-radius: 50%;
	transform: rotate(0deg);
}

.blumaps-routes-select.filled small {
	background-color: #231F20;
	transition: background-color 0.2s;
}

.blumaps-routes-select.filled:hover:not(.fixed) small {
	background-color: transparent;
	border-radius: 50%;
	transform: none;
	border: none;
}

.blumaps-routes-select.filled:hover:not(.fixed) small:after {
	font-size: 15px;
	font-weight: bold;
	line-height: 8px;
	content: '\d7';
}

.blumaps-routes-select.filled.fixed .blumaps-routes-loc { color: #888; }
.blumaps-routes-select.filled.fixed small {
	background-color: #888;
	border-color: #888;
}

.blumaps-routes-select {
	border-left: 3px solid transparent;
	box-sizing: border-box;
	cursor: pointer;
	display: block;
	padding: 8px 12px;
	height: 40px;
	min-width: 240px;
	transition: border-color 0.2s;
}

.blumaps-routes-select.active {
	border-color: var(--secondary-color);
	background-color: #fafafa;
}

.blumaps-routes-select.active small {
	color: #2f3434;
}

.blumaps-routes-select span {
	color: #ccc;
	font-size: 14px;
	font-style: italic;
	line-height: 26px;
	padding-left: 10px;
	
	-webkit-user-select: none; 
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.blumaps-routes-select.filled span {
	display: none;
}

.blumaps-routes-buttons {
	display: flex;
    align-items: center;
	flex-direction: row-reverse;
	gap: 8px;
	position: absolute;
	bottom: 15px;
	right: 15px;
}

.blumaps-create-route-button {
    align-items: center;
    border: none;
    border-radius: 35px;
    padding: 8px 12px 8px 12px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 400;
    font-family: 'Rawline', sans-serif;
    height: 35px;
    font-size: 14px;
	cursor: pointer;
}

/** Botão de fechar e limpar o painel de rotas **/
.blumaps-routes-close,
.blumaps-routes-clean {
	color: var(--primary-color);
    font-weight: 400;
	font-size: 14px;
	border: 1px solid var(--primary-color);
	font-family: 'Rawline', sans-serif;
	padding: 8px 12px 8px 12px;
	border-radius: 35px;
	cursor: pointer;
}

/** Accessible **/
.blumaps-routes .blumaps-routes-wheelchair {
	background-image: url(../../assets/icons/wheelchair.svg);
	background-repeat: no-repeat;
	background-position: center;
	align-items: center;
    border: none;
    border-radius: 35px;
    padding: 8px 12px 8px 12px;
    background-color: transparent;
    color: white;
    font-weight: 400;
    font-family: 'Rawline', sans-serif;
    height: 35px;
    font-size: 14px;
	cursor: pointer;
}

.blumaps-routes .blumaps-routes-wheelchair:focus { outline: none; }

.blumaps-routes .blumaps-routes-wheelchair.enabled {
	background-color: #e4e4e4;
	opacity: 0.9;
}

/** Botão de alterar direção das rotas selecionadas **/
.blumaps-routes-swap {
	background-image: url(../../assets/icons/swap.svg);
	background-size: 16px 16px;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 3px;
	cursor: pointer;
	opacity: 0;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	margin-left: -12px;
	position: absolute;
	right: 10px;
	transition: transform 0.2s, opacity 0.2s;
}

.blumaps-routes-swap.rotate {
	transform: rotate(180deg);
}

.blumaps-routes-swap:hover {
	opacity: 1 !important;
}

/** Location holder **/
.blumaps-routes-loc {
	font-size: 14px;
	line-height: 24px;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-left: 10px;
	overflow: hidden;
}

.blumaps-routes-dots {
	width: 4px;
	height: 28px;
	left: 19px;
	margin-top: -14px;
	margin-left: -2px;
	position: absolute;
	pointer-events: none;
}

.blumaps-routes-dots > span {
	background-color: #ccc;
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	margin: 4px 0;
}

/* Route path */
.blumaps-routes-path {
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
	display: block;
}

/* Icons */
.blumaps-routes .blumaps-list-location {
	position: relative;
	overflow: hidden;
}

.blumaps-routes-icon {
	background: url(../../assets/icons/direction-arrow.svg) no-repeat center;
	cursor: pointer;
	width: 20px;
	height: 20px;
	opacity: 0.6;
}

.blumaps-routes-icon:hover {
	opacity: 1;
}

.blumaps-routes .blumaps-list-location .blumaps-routes-icon {
	position: absolute;
	top: 12px;
	right: -30px;
	transition: right 0.2s, opacity 0.2s;
}

.blumaps-routes .blumaps-list-location:hover .blumaps-routes-icon {
	right: 10px;
}

/* Map */
.blumaps-routes .blumaps-clickable {
	opacity: 1 !important;
}

.blumaps-routes .blumaps-active {
	fill: #f8f8f8;
}

.blumaps-routes g[id^=landmarks-large] .blumaps-active {
	fill: #555;
}

.blumaps-filtered svg [id^=landmark] > * { opacity: 1 !important; }