html,
body {
	width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.3;
    position: relative;
    background: #C9C6BD;
    overflow: hidden;

    --font-family-sans-serif: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --font-family-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}

/* scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

* {
	box-sizing: border-box;
}

*:focus {
    outline: none;
}

::placeholder {
	color: #969aa5;
	opacity: 1;
}

::-ms-input-placeholder {
	color: #969aa5;
}

#mapcir-map {
	height: 100%;
	width: 100%;
}

.sidebar {
    width: 100vw;
    max-height: 100vh;
    padding: 8px;
    position: absolute;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: none;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-directions{
	border-radius: 5px;
	margin-bottom: 0;
	max-height: 100%;
    background: #f8f9fa;
    pointer-events: all;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 5px 0 rgba(0,0,0,0.20);
    padding-bottom: 10px;
}

.directions-header {
	width: 100%;
    font-size: 16px;
    margin: 0;
    padding: 15px;
    padding-bottom: 10px;
    height: auto;
    font-size: 18px;
    color: #202124;
    letter-spacing: .3px;
    line-height: 18px;
    background: #fff;
    border-radius: 10px 10px 0 0;
}

.directions-contents {
	width: 100%;
	flex: 1;
	flex-direction: column;
}

ul.directions-mode {
	margin: 0;
	margin-top: 10px;
	padding: 0;
	width: 100%;
	outline: none;
	text-align: center;
}

ul.directions-mode li {
	margin: 0;
	padding: 5px 25px 3px 25px;
	display: inline-block;
	list-style: none;
	cursor: pointer;
	font-size: 12px;
	display: inline-flex;
}
ul.directions-mode li:nth-child(1) {
	font-weight: bold;
}

ul.directions-mode li::before {
	content: " ";
	display: inline-block;
}

ul.directions-mode li.mode-driving::before {
	width: 17px;
	height: 15px;
	background: url(../images/transit-driving.svg) no-repeat center / contain;
}
ul.directions-mode li.mode-driving.active::before {
	background: url(../images/transit-driving-active.svg) no-repeat center / contain;
}

ul.directions-mode li.mode-walking::before {
	width: 24px;
	height: 15px;
	background: url(../images/transit-walking.svg) no-repeat center / contain;
}
ul.directions-mode li.mode-walking.active::before {
	background: url(../images/transit-walking-active.svg) no-repeat center / contain;
}

ul.directions-mode li.mode-bike::before {
	width: 21px;
	height: 15px;
	background: url(../images/transit-bike.svg) no-repeat center / contain;
}
ul.directions-mode li.mode-bike.active::before {
	background: url(../images/transit-bike-active.svg) no-repeat center / contain;
}

ul.directions-mode li.active {
	border-radius: 15px;
	border: 1px solid #00A5CF;
	background-color: rgba(25, 103, 210, 0.2);
}

.directions-inputs {
	width: 100%;
    display: grid;
    grid-column-gap: 14px;
    grid-row-gap: 10px;
    grid-template-columns: -webkit-min-content minmax(0,1fr) -webkit-min-content;
    grid-template-columns: min-content minmax(0,1fr) min-content;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    align-items: center;
    background: url(../images/dots.svg) no-repeat;
    background-position: left 15px top 47px;
    transition-duration: var(--routing-transition-duration);
    transition-property: margin-left,grid-row-gap;
    margin: 0;
    padding: 15px 16px 0 15px;
}

.directions-icon {
	width: 24px;
	height: 24px;
	display: inline-block;
	background-repeat: no-repeat;
	background-position: center;
}
.directions-icon.icon-origin {
	background-image: url(../images/marker-origin.svg);
}
.directions-icon.icon-destination {
	background-image: url(../images/marker-destination.svg);
}

.directions-input {
	width: auto;
	height: 40px;
	display: flex;
	flex-direction: row;
	background: #f2f4f7;
	border-radius: 5px;
}
.directions-input input[type="text"] {
	flex: 1;
	border: none;
	padding: 0 0 0 10px;
	background: none;
	font-size: 0.9rem;
}
.directions-input input[type="text"]:disabled {
   color: #202124;
   opacity: 1;
}

.directions-input .input-btn {
	width: 32px;
	height: 100%;
	display: inline-block;
	background-image: url(../images/search.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	cursor: pointer;
}
.directions-input .input-btn.focus {
	background-image: url(../images/close.svg);
	background-size: 14px 14px;
}

.dierctions-reverse {
	width: 24px;
	height: 24px;
	display: inline-block;
	grid-row: span 2;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url(../images/reverse.svg);
	cursor: pointer;
}

.directions-suggestions {
	width: 100%;
	display: none;
	overflow: hidden;
	overflow-y: auto;
}
.directions-suggestions.show {
	display: block;
}

.directions-suggestions > ul {
	width: 100%;
	padding: 0;
	margin: 5px 0 0 0;
	outline: none;
	font-size: 0.9rem;
}
.directions-suggestions > ul > li {
	width: 100%;
	list-style: none;
	padding: 5px 20px 5px 52px;
	color: #474747;
	border-top: 1px solid #e8e8e8;
	position: relative;
	cursor: pointer;
	/*text-align: justify;
	text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 97%;*/
}
.directions-suggestions > ul > li::before {
	position: absolute;
	top: 5px;
	left: 17px;
	content: " ";
	display: block;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url(../images/marker-default.svg);
	background-size: 20px 20px;
	font-size: 0.75rem;
}

.directions-suggestions > ul > li .secondary_text {
	color: #6c6c6c;
}

@media (min-width: 768px) {
	.sidebar {
		width: 386px;
	}
}
