/*FORM ELEMENTS*/

#subtitleContainer, #subtitleContainer2 {
	/* background-color: #000; */
	margin: 8px 16px 8px 16px ;
	border-radius: 4px 4px 0 0;
}

#collapseButton, #collapseButton2 {
	height: 16px;
	margin: 0;
	margin-right: 0;
	cursor: pointer;
}

#textBoxNote {
	font-size: 12px;
	margin: 16px;
	margin-top: 8px;
}

#leaveArrBox {
	margin-left: 32px;
	margin-right: 32px;
}

#reverseOD {
	cursor: pointer;
	margin-left: 8px;
	margin-right: 0px;
}

.form-group {
	margin-bottom: 8px !important;
}

.warning-text {
	position: relative;
	left: 32px;
	font-size: 10px;
	margin-bottom: 4px;
}

.mapboxgl-ctrl-geocoder{
	box-shadow: none !important;
	font-family: 'Roboto', sans-serif !important;
	min-width: calc(clamp(165px, 100vw - 136px, 420px)) !important; 
	max-width: calc(clamp(165px, 100vw - 136px, 420px)) !important; ;
}

.mapboxgl-ctrl-geocoder--icon-search{
	display: none !important;
}

.mapboxgl-ctrl-geocoder--input{
	border: 1px solid #9d9d9c !important;
	border-radius: 8px !important;
	padding: 4px 8px !important;
	/* font-weight: bold !important; */
	/* font-style: italic !important; */
	font-size: 10px !important;
	height: 32px !important;
	
	.int-map-autocomplete {
		padding-right: 32px;
	}
}


.mapboxgl-ctrl-geocoder--suggestion-title{
	font-size: .8rem !important;
}

.mapboxgl-ctrl-geocoder--suggestion-address{
	font-size: .8rem !important;
}

.mapboxgl-ctrl-geocoder--icon-close {
	height: 12px !important;
	width: 12px !important;
}

.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--pin-right > * {
	top: 4px !important;	
}

.form-control{
	/* border:0; */
	/* font-style: italic; */
	/* font-weight: 500; */
	font-size: 12px;
	/*box-shadow:0 0 10px 2px rgb(0 0 0 / 10%);*/
}

select {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-image: url('../images/triangle_menu_down_black.svg');
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: auto 8px, 100%;
}

select::-ms-expand {
	display: none;
}

#dowInput {
	background-image: url('../images/Calendar.svg');
	background-size: auto 12px, 100%;
}

input[type="time"] {
	position: relative;
}

input[type="time"]::-webkit-calendar-picker-indicator {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	top:0;
	height: auto;
	width: auto;
	background: transparent;
	color: transparent;
}

#leaveArrInput {
	font-size: 10px;
}

#compareButton {
	width: 200px;
	height: 40px;
	color: #fff;
	background-color: #007EB6;
	font-size: 16px;
	font-weight: bold;
	border-radius: 20px;
	margin-top: 8px;
	margin-bottom: 8px;
}

#backButton{
	margin: 0!important;
	cursor: pointer;
	/* width: 200px;
	height: 40px;
	color: #fff;
	background-color: dimgrey;
	font-size: 16px;
	font-weight: bold;
	border-radius: 20px;
	margin-top: 16px;
	margin-bottom: 16px; */
}

#fromField {
	z-index: 3;
	/* position: relative; */
}

#fromField .mapboxgl-ctrl-geocoder--icon-search {
	fill: #21965E;
}


#toField {
	z-index: 2;
	/* position: relative; */
}

#toField .mapboxgl-ctrl-geocoder--icon-search {
	fill: #DF2935;
}

.custom-clear {
	margin-left: 32px;
	margin-bottom: 8px;
}

#exploreButton{
	margin: auto;
}

#loadingBox{
	margin-top: 50px;
	padding-bottom: 50px;
}

.error-message, .dr-message {
	padding-bottom: .5rem;
	font-size: .8rem;
}


.duration-min{
	font-size: 0.75rem;
}

/* .note{
	font-size: 0.8rem;
	margin-bottom: 0.125rem;
} */

#mapParentContainer {
	max-width: 100% !important;
	position: absolute;
	top: 0px;
}

#map {
	/*margin-bottom: 1rem;*/
	height: calc(100vh - 56px);
}

#mapControl{
	position: absolute;
	top: 5px;
	left: 15px;
	padding: 10px;
	background-color: rgba(255, 255, 255, 0.9);
	/*border: 1px solid #20425d;*/
	/* border-radius: 4px; */
	box-shadow:0 0 10px 2px rgb(0 0 0 / 10%);
	font-size: .6rem;
}

#mapControl input[type=radio] {
	margin-top: 0.1rem;
	height: .6rem;
}

/*#mapLegend{
	position: absolute;
	top: 5px;
	right: 20px;
	padding: 10px;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 4px;
	box-shadow:0 0 10px 2px rgb(0 0 0 / 10%);
}
*/

.special-note{
	display: none;
}

.legend-entry{
    font-size: 0.8rem;
}

.legend-line-short{
    display:inline-block;
    height:0.75rem;
    width:1.25rem;
    margin-right:0.125rem;
}

.legend-line{
    display:inline-block;
    height: 8px;
    width: 32px;
    margin-left:8px;
	border-radius: 4px;
}

.legend-line-circle{
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 4px solid;
    border-radius: 50%;
	background-color: #fff;
	margin-left:8px;

}

.legend-line-long{
    display:inline-block;
    height:0.75rem;
    width:8.125rem;
    /*margin-right:2px;*/
}

.custom-marker {
	width: 24px;
	height: 24px;
	margin-right: 8px;
}

/*
.mapboxgl-canvas {
	padding-left:15px!important;
	padding-right:15px!important;
}

.mapboxgl-ctrl-bottom-left {
	padding-left:15px!important;
}

.mapboxgl-ctrl-bottom-right {
	padding-right:15px!important;
}*/

/*More Info ACCORDION STYLES*/

#accordionRow {
	/* padding: 0 16px 8px 16px !important; */
	border-radius: 0 0 4px 4px !important;
}

#infoAccordion .card{
	border-radius: 0;
}

.card-header {
	margin: 0 16px 8px 0 !important;
}

.card-header .btn {
	font-size: 12px;
}

.card-header .btn:before {   
    font-family: 'Material Icons Outlined';  
    content: "expand_less";
    font-size: 1.25rem;
	position:relative;
	bottom: -5px;
}

.card-header .btn.btn-secondary:before {
	color: white; 
}

.card-header .btn.collapsed:before {
    content: "expand_more"; 
}

/*.card-header .btn.collapsed.btn-secondary:before {
    color: white; 
}*/

.card-body{
	padding: 8px 16px 0 16px;
	font-size: 12px;
}


/*Itinerary Custom Accordion Styles*/
#itineraryBox {
	margin: 0 16px 0 16px;
}

.i-card-header{
	cursor: pointer;
	padding-left: 16px;
	padding-right: 16px;
}

.i-card-header.new.active  {
	background-color: rgba(0, 133, 202, .07);
}

.i-card-header.old.active  {
	background-color: rgba(0, 0, 0, .07);
}

.i-card-body .flex-row {
	padding-right: 16px;
}

.i-card-body.new  {
	background-color: rgba(0, 133, 202, .07);
}

.i-card-body.old  {
	background-color: rgba(0, 0, 0, .07);
}

.i-card-body > .flex-row  {
	border-top: solid 1px white;
}

.i-active-line{
	width: 10px;
	background-color: white;
}
.i-active-line.active.new{
	background-color: #295D92;
}
.i-active-line.active.old{
	background-color:dimgray;
}

#formItineraryContent {
	margin-bottom: 16px !important;
}

.i-header-icon-container {
	margin-top: 16px;
}

.i-header-icon{
	display: inline-block;
	margin-left: 16px;
	margin-right: 12px;
}

.i-header-icon img{ 
	display: inline-block;
	height: 32px;
	width: 32px;
}

/* .i-header-icon.new{
	color: #295D92;
}
.i-header-icon.old{
	color: dimgray;
} */


.i-duration{
	margin-left: auto;
	margin-right: 5px;
	font-size: 1rem;
	font-weight: 500;
	min-width: 50px;
}

.i-text-header {
	margin-top: 8px;
	margin-bottom: 8px;
}

.i-dr-note {
	padding-top: 4px;
	padding-bottom: 4px;
	background-color: #fff;

	.info-btn {
		margin-right: 8px;
	}
}

.i-s-e-time{
	font-size: 12px;
}

.i-rts{
	font-size: 12px;
	margin-top: 4px;
	margin-bottom: 4px;

	.i-rts-icon{
		padding-bottom: 4px;
	}
}

.i-rt-rem {
	border-radius:50%;
	height: 24px;
	width: 24px;
	line-height: 20px;
	font-weight: bold;
	display: inline-block;
    text-align: center;
	border-style: solid;
	border-width: 2px;
	border-color: #84BD00;
}

.i-rt-exo-train {
	color: white;
	background-color: #C6007E;
	border-radius:2px;
	height: 16px;
	width: 28px;
	line-height: 16px;
	font-weight: bold;
	display: inline-block;
    text-align: center;
}

.i-rt-bus {
	color: white;
	border-radius:2px;
	height: 16px;
	width: 28px;
	line-height: 16px;
	font-weight: bold;
	display: inline-block;
    text-align: center;
}

.i-rt-stm-metro {
	color: white;
	border-radius:50%;
	height: 20px;
	width: 20px;
	line-height: 20px;
	font-weight: bold;
	display: inline-block;
    text-align: center;
}

.i-rts-icon, .i-rts-right-arrow {
	display: inline-block;
}

.i-rts-icon img{
	display: inline-block;
	vertical-align: middle;
	height: 20px;
	margin-left: 0px;
	margin-right: 8px;
}

.i-rts-right-arrow img{
	display: inline-block;
	vertical-align: middle;
	height: 12px;
	margin-left: 8px;
	margin-right: 8px;
}

/* .i-rts .material-icons {
	font-size: 1.25rem;
	vertical-align: bottom;
} */

.i-toggle-map {
	margin-left: auto;
	margin-top: auto;
	margin-bottom: 12px;
}

/* .i-toggle-itinerary.new{
	color: #295D92;
}
.i-toggle-itinerary.old{
	color: dimgray;
} */

.i-leg-s-time{
	min-width: 16px;
	/* font-size: .8rem;
	font-style: italic;
	font-weight: 500; */
}

.i-icon{
	margin-top: 7px;
	margin-right: 8px;
	width: 18px;
	height: 18px;
}
/* .i-icon.new{
	color: #295D92;
}
.i-icon.old{
	color: dimgray;
} */

.i-step-text{
	font-size: 12px;
	margin-top: 7px;
	margin-bottom: 7px;
	/* line-height: 32px; */
}


.od-link {
	font-size: .8rem;
	font-weight: 500;
	cursor: pointer;
}

.o-link {
	color: #21965E;
}

.d-link {
	color: #DF2935;
}


/* Responsive Updates */
@media (max-width:640px){
	.mapboxgl-ctrl-geocoder--icon-close {
		margin: 0 !important;
	}
}


@media (min-width: 576px){
    #subtitleContainer, #subtitleContainer2 {
		margin: 16px 24px 16px 24px ;
		border-radius: 8px 8px 0 0;
	}

	#collapseButton, #collapseButton2{
		height: 18px;
		/* margin-right: 20px; */
	}

	#textBoxNote {
		font-size: 14px;
		margin: 24px;
		margin-top: 16px;
	}

	.warning-text {
		position: relative;
		left: 48px;
		font-size: 14px;
		margin-bottom: 8px;
	}

	#leaveArrBox {
		margin-left: 48px;
		margin-right: 40px;
	}

	#leaveArrInput{
		font-size: 14px;
	}

	 #compareButton{ /*#backButton */
		width: 260px;
		font-size: 18px;
	}


	.form-control{
		font-size: 14px;
	}

	#reverseOD {
		margin-left: 16px;
	}

	.custom-marker {
		width: 32px;
		height: 32px;
		margin-right: 16px;
	}

    .mapboxgl-ctrl-geocoder {
		width: calc(100vw - 200px)!important;
		min-width: 356px!important;
		max-width: 420px!important;
		/* min-width: 420px!important;
		max-width: 420px!important; */
	}

	.mapboxgl-ctrl-geocoder--input{
		height: 40px !important;
		border-radius: 12px !important;
		padding: 4px 16px !important;
		font-size: 14px !important;
	}

	.mapboxgl-ctrl-geocoder--icon-close {
		height: 16px !important;
		width: 16px !important;
	}

	.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--pin-right > * {
		top: 8px !important;	
	}

	.custom-clear {
		margin-left: 48px;
	}

	select {
		background-size: auto 12px, 100%;
	}

	#dowInput {
		background-size: auto 20px, 100%;
	}
	
	
	#mapControl{
		font-size: .8rem;
	}
	
	#mapControl input[type=radio] {
		height: .8rem;
		margin-top: 0.2rem;
	}

	#itineraryBox {
		margin: 0 24px 0 24px;
	}

	.bi{
		font-size: 27.31px !important;
	}

	.i-header-icon {
		margin-right: 24px;
	}

	.i-header-icon img{ 
		height: 40px;
		width: 40px;
	}

	.i-text-header {
		margin-top: 16px;
		margin-bottom: 16px;
	}

	.i-dr-note {
		padding-top: 8px;
		padding-bottom: 8px;
		background-color: #fff;

		.info-btn {
			margin-right: 12px;
			cursor: default;
		}
	}


	.i-s-e-time{
		font-size: 14px;
	}
	
	.i-rts{
		margin-bottom: 8px;	
		font-size: 14px;
	}

	.i-rt-rem {
		border-radius:50%;
		height: 28px;
		width: 28px;
		line-height: 22px;
		font-weight: bold;
		display: inline-block;
		text-align: center;
		border-style: solid;
		border-width: 3px;
		border-color: #84BD00;
	}
	
	.i-rt-exo-train {
		color: white;
		border-radius:2px;
		height: 20px;
		width: 32px;
		line-height: 20px;
		font-weight: bold;
		display: inline-block;
		text-align: center;
	}
	
	.i-rt-bus {
		color: white;
		border-radius:2px;
		height: 20px;
		width: 32px;
		line-height: 20px;
		font-weight: bold;
		display: inline-block;
		text-align: center;
	}
	
	.i-rt-stm-metro {
		color: white;
		border-radius:50%;
		height: 24px;
		width: 24px;
		line-height: 24px;
		font-weight: bold;
		display: inline-block;
		text-align: center;
	}

	.i-rts-icon img{
		margin-right: 12px;
	}

	.i-rts-right-arrow img{
		margin-left: 12px;
		margin-right: 12px;
	}

	.i-rts .material-icons {
		font-size: 1.5rem;
	}

	.i-duration{
		font-size: 14px;
		min-width: 90px;
	}

	.i-toggle-map {
		margin-bottom: 16px;
	}

	.i-icon{
		margin-right: 12px;
		width: 24px;
		height: 24px;
	}

	.i-leg-s-time{
		min-width: 16px;
		/* font-size: 14px; */
	}

	.i-step-text{
		font-size: 14px;
	}

	#accordionRow {
		border-radius: 0 0 8px 8px !important;
	}

	#infoAccordion .card{
		margin: 0px 8px;
	}

	.card-header .btn {
		font-size: 14px;
	}

	.card-body {
		font-size: 14px;
	}
}

@media (min-width: 768px){

	#mapControl{
		left: 5px;
	}

	#mapControl{
		font-size: 1rem;
	}
	
	#mapControl input[type=radio] {
		height: 1rem;
		margin-top: .3rem;
	}
}
