@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900&subset=latin,cyrillic);

/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
	color: var(--Gray-900, #333);
	margin: 10px 0px;
}

::-moz-selection {
	background: var(--Primary-700, #3270a8);
	text-shadow: none;
	color: var(--White, #fff);
}

::selection {
	background: var(--Primary-700, #3270a8);
	text-shadow: none;
	color: var(--White, #fff);
}

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid var(--Gray-300, #ccc);
	margin: 1em 0;
	padding: 0;
}

img {
	vertical-align: middle;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

textarea {
	resize: vertical;
}

.chromeframe {
	margin: 0.2em 0;
	background: var(--Gray-300, #ccc);
	color: var(--Black, #000);
	padding: 0.2em 0;
}

a {
	color: var(--Gray-900, #333);
	text-decoration: none;
}

.active {
	color: var(--Primary-700, #3270a8);
}

.nonanimated {
	display: none;
}

.animated {
	-webkit-transform: translate3d(0, 0, 0) !important;
	transform: translate3d(0, 0, 0) !important;
	opacity: 1 !important;
}

/*  */

#for_old_browsers {
	display: none;
	font: 26px arial;
	text-align: center;
	margin: 50px 0;
	line-height: 32px;
}

#for_old_browsers a {
	color: var(--Primary-700, #3270a8);
	border-bottom: 1px solid;
}

.lt-ie9 .wrapper {
	display: none;
}

.lt-ie9 #for_old_browsers {
	display: block;
}

.wrapper {
	width: 100%;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
	background-color: transparent;
	border: 0;
	overflow: hidden;
	text-indent: -9999px;
}

.ir:before {
	content: "";
	display: block;
	width: 0;
	height: 150%;
}

.hidden {
	display: none !important;
	visibility: hidden;
}

.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	width: auto;
}

.invisible {
	visibility: hidden;
}

.clearfix:before,
.clearfix:after {
	content: " ";
	display: table;
}

.clearfix:after {
	clear: both;
}

.clearfix {
	zoom: 1;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

header {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 1000;
	top: 0;

	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
	padding: 20px;
	background: var(--Gray-200, rgba(243, 243, 243, 0.85));
	box-shadow: 1px 1px 12px var(--Gray-350, #bbb);

	@media (max-width: 750px) {
		flex-direction: column;
		align-items: center;
		padding: 5px;
		gap: 8px
	}
}

header .logo {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
}

header .logo .image {
	height: 30px;
	opacity: 0.85;

	@media (max-width: 750px) {
		height: 25px;
	}
}

header .logo .image {
	@media (max-width: 380px) {
		height: 20px;
	}
}


header .logo .title {
	color: var(--Primary-700, #3270a8);
	font-family: var(--Font-text, 'Roboto', arial, sans-serif);
	font-weight: 300;
	font-size: 28px;
	margin: unset;

	@media (max-width: 750px) {
		font-size: 25px;
	}
}

header .logo .title {
	@media (max-width: 380px) {
		font-size: 23px;
	}
}

header .menu {
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 15px;
}

header .menu a {
	font-family: var(--Font-text, 'Roboto', arial, sans-serif);
	font-weight: 400;
	font-size: 14px;
	padding: 5px;
	text-align: center;

	@media (max-width: 750px) {
		font-size: 13px;
	}
}

header .menu a {
	@media (max-width: 380px) {
		font-size: 11px;
	}
}

#popup-about,
#popup-contacts,
#popup-terms,
#popup-info {
	position: fixed;
	z-index: 1000;
}

#map {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

footer {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 1000;
	bottom: 0;
	padding: 10px 20px;

	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	background: var(--Gray-200, rgba(243, 243, 243, 0.85));
	box-shadow: 1px 1px 12px var(--Gray-350, #bbb);

	@media (max-width: 450px) {
		padding: 5px;
	}
}

footer .title {
	color: var(--Black, #000);
	font-family: var(--Font-text, 'Roboto', arial, sans-serif);
	font-weight: 300;
	font-size: 11px;
	margin: unset;

	@media (max-width: 600px) {
		text-align: center;
		font-size: 10px;
	}
}

footer .legend {
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;

	color: var(--Black, #000);
	font-family: var(--Font-text, 'Roboto', arial, sans-serif);
	font-weight: 300;
	font-size: 11px;

	@media (max-width: 600px) {
		display: none;
	}
}

.mapblock,
.popup {
	padding: 20px;
	background: var(--Gray-200, rgba(243, 243, 243, 0.85));
	box-shadow: 1px 1px 12px var(--Gray-350, #bbb);

	@media (max-width: 750px) {
		padding: 5px;
	}
}

.mapblock {
	display: none;
}

.mapblock img {
	width: 200px;
}

@keyframes inout-toggle {
	0% {
		-webkit-box-shadow: 0 0 0 0px var(--Primary-700-shadow, #3270a8d7);
		-moz-box-shadow: 0 0 0 0px var(--Primary-700-shadow, #3270a8d7);
		box-shadow: 0 0 0 0px var(--Primary-700-shadow, #3270a8d7);
		border-radius: 6px;
	}

	100% {
		-webkit-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
		-moz-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
		box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
		border-radius: 6px;
	}
}

.pulseItem {
	animation: inout-toggle 2s ease infinite;
}

#button-toggle {
	position: fixed;
	z-index: 1000;
	right: 0;
	top: 80px;
	margin-right: 10px;
	cursor: pointer;
	font-size: 18px;
	animation: inout-toggle 2s ease infinite;

	@media (max-width: 365px) {
		top: 95px;
	}
}

#button-toggle {
	@media (max-width: 365px) {
		margin-right: 5px;
		top: 100px;
		z-index: 1500;
	}
}

#button-toggle {
	@media (max-width: 380px) {
		margin-right: 5px;
		top: 85px;
		z-index: 1500;
	}
}

#button-toggle div {
	border-radius: 6px;
	width: 27px;
	height: 27px;
	text-align: center;
	line-height: 27px;
	background: rgba(255, 255, 255, .85);
	box-shadow: 1px 1px 12px var(--Gray-350, #bbb);
}

#selector {
	display: flex;
	flex-direction: column;
	gap: 5px;
	border-radius: 10px;
	position: fixed;
	z-index: 1000;
	right: 0;
	top: 112px;
	margin-right: 10px;
	width: 250px;
	align-items: center;

	@media (max-width: 750px) {
		padding: 5px;
		gap: 0px;
		width: 290px;
	}
}

#selector {
	@media (height: 600px) and (width:1024px) {
		top: 80px;
		margin-right: 50px;
		gap: 2px;
		width: 400px;
	}
}

#selector {
	@media (max-width: 380px) {
		top: 95px;
		width: auto !important;
		margin-right: unset;
	}
}

#selector {
	@media (max-width:380px) {
		gap: 1px;
		top: 80px !important;
	}
}

#selector h2.small {
	color: var(--Primary-700, #3270a8);
	font-family: var(--Font-text, 'Roboto', arial, sans-serif);
	font-size: 16px;
	font-weight: 500;
	margin: unset;

	@media (max-width: 380px) {
		font-size: 14px;
	}
}

#selector h3.small {
	font-size: 12px;

	@media (max-width: 380px) {
		font-size: 10px;
	}
}

#selector .center {
	color: var(--Primary-700, #3270a8);
	font-family: var(--Font-text, 'Roboto', arial, sans-serif);
	font-size: 16px;
	font-weight: 400;
	text-align: center;
	margin: unset;

	@media (max-width: 380px) {
		font-size: 14px;
	}
}

#selector h2 {
	margin: 3px 0;
	text-align: center;
}

#selector h2:first-child {
	margin-top: 0;
}

#selector .itemscontainer>span {
	float: left;
	cursor: pointer;
	padding: 2px;
	min-width: 27px;
	min-height: 27px;
	text-align: center;
	line-height: 27px;
	font-size: 15px;
	font-family: var(--Font-text, 'Roboto', arial, sans-serif);

	@media (max-width: 380px) {
		font-size: 13px;
		min-width: 25px;
		min-height: 25px;
		line-height: 25px;
	}
}

#selector .links {
	margin: 20px 0 10px 0;
}

#selector .links a {
	cursor: pointer;
	line-height: 26px;
}

#selector hr {
	margin: unset !important;
}

.leaflet-popup-content .itemscontainer {
	min-width: 150px;
}

.leaflet-popup-content .itemscontainer>span {
	float: left;
	cursor: pointer;
	width: 27px;
	height: 27px;
	text-align: center;
	line-height: 27px;
	color: var(--Black, #000);
}

.itemscontainer>span:hover,
#button-toggle div:hover,
.itemscontainer>span.active,
.itemscontainer>a:hover,
#selector .itemscontainer>a.active {
	border-radius: 6px;
	background: var(--Primary-700, #3270a8);
	color: var(--White, #fff);
}

#routes {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 100%;
}

.itemscontainer {
	text-align: left;
}


.leaflet-top {
	top: 80px !important;

	@media (max-width: 750px) {
		display: none;
	}
}

.leaflet-bottom {
	bottom: 41px !important;
}

.leaflet-bar a {
	font-weight: 300;
}

.popup {
	width: 600px;
	position: fixed;
	top: 150px;
	left: 50%;
	margin-left: -300px;
	display: none;
	text-align: justify;
	border-radius: 8px;

	color: var(--Gray-900, #333);
	font-size: 14px;
	line-height: 1.4;
	font-family: var(--Font-text, 'Roboto', arial, sans-serif);
	font-weight: 400;

	@media (max-width: 750px) {
		top: 95px;
		width: 300px;
		margin-left: -155px;
		padding: 5px !important;
	}
}

.popup {
	@media (max-width: 380px) {
		width: 250px;
		margin-left: -130px;
		font-size: 12px;
	}
}

.popup .close {
	float: right;
	cursor: pointer;
	width: 24px;
	height: 24px;
	text-align: center;
	line-height: 24px;
	background: var(--Primary-700, #3270a8);
	color: var(--White, #fff);
	font-size: 11px;
	border-radius: 4px;
}

.popup h1,
.popup h2,
.popup h3,
.popup h4,
.popup h5,
.popup h6 {
	font-weight: 300;
	margin: 0;
	color: var(--Primary-700, #3270a8);
}

.popup h2 {
	margin-bottom: 20px;
}

.popup .info {
	display: flex;
	flex-direction: row;
	justify-content: space-between;

	@media (max-width: 750px) {
		flex-direction: column-reverse;
		gap: 15px;
	}
}

.popup .info .content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.popup p {
	margin: unset;
}

.popup .info .content .description {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 15px;
}

.popup .info .content .description .icon {
	height: 100%;
	max-height: 25px;
}

/* */

.select2-results {
	max-height: 170px !important;
}

.leaflet-marker-icon {
	background: transparent !important;
	border: 0 !important;
}

.leaflet-container a.leaflet-popup-close-button {
	padding: 6px 6px 0 0;
}

/* Markers */

.marker {
	width: 21px;
	height: 21px;
	position: relative;
	z-index: 1005;
}

.marker .wrapper {
	height: 100%;
	transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	/* IE 9 */
	-webkit-transform: rotate(0deg);
	/* Safari and Chrome */
}

.marker img {
	width: 23px;
}

.marker span {
	display: block;
	position: absolute;
	top: 3px;
	right: 1px;
	width: 100%;
	text-align: center;
	color: var(--White, #fff);
	font: 11px arial;
}


.legend .marker .wrapper {
	transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	/* IE 9 */
	-webkit-transform: rotate(90deg);
	/* Safari and Chrome */
}

.popupStopTitle {
	background: url('../img/stopForPopup.png') no-repeat;
	margin-bottom: 10px;
	padding-left: 32px;
}

.popupStopSubtitle {
	margin: 5px 0 2px;
}

#map.leaflet-container {
	font-family: 'Roboto', arial, sans-serif;
	font-weight: 400;
}

.typeTerminal {
	color: black;
}

.terminalTitle {
	padding: 0 0 7px;
}

footer .share {
	width: 180px;
	position: absolute;
	left: 50%;
	bottom: 12px;
	margin-left: -90px;
}

.image-fayna {
	width: 100%;
	max-width: 200px;
	height: 100%;
	max-height: 120px;
	text-align: center;

	@media (max-height: 800px) {
		display: none;
	}
}

@media only screen and (max-width : 1110px) {
	footer .share {
		display: none;
	}

	#popup-text {
		font-size: 30px;
	}

	div.center-block {
		width: 80%;
	}
}

div.desc_disable {
	color: red;
	font-size: 90%;
	text-align: left;
}