/* phpcs:ignore */

/* Terminal Map Landing Hero Styles */
#page_content #hero.terminal-hero {
	display: flex;
	height: 500px;
	padding-top: 115px;
	padding-bottom: 0 !important;
	position: relative;

	background: rgb(21,31,109);
	background: -moz-linear-gradient(40deg, rgba(21,31,109,1) 0%, rgba(6,135,195,1) 100%);
	background: -webkit-linear-gradient(40deg, rgba(21,31,109,1) 0%, rgba(6,135,195,1) 100%);
	background: linear-gradient(40deg, rgba(21,31,109,1) 0%, rgba(6,135,195,1) 100%);
}

#page_content #hero.terminal-hero:after {
	content: '';
	display: block;
	width: 100%;
	height: 115px;
	background-image: url(../img/map-hero-overlay.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: bottom;
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
}

#page_content #hero.terminal-hero .terminal-hero__title {
	display: flex;
	align-items: center;
	padding: 0 10vw 5vw;
	height: 100%;

	background-image: url('../img/map-title-bg.png');
	background-repeat: no-repeat;
	background-size: 75% auto;
	background-position: 110% 45%;
}

#page_content #hero.terminal-hero .terminal-hero__title h1 {
	max-width: unset;
	margin-left: unset;
	margin-right: unset;
	text-transform: none;
	font-weight: 400;
}

#page_content #hero.terminal-hero .terminal-hero__image {
	width: 55%;
	height: auto;
	flex-shrink: 0;
}

/* Terminal Map Styles */
#terminal-map-top {
	padding-top: 30px !important;
	padding-bottom: 30px !important;
	margin-top: 0 !important;
}

#terminal-map-top > * {
	margin-top: 0 !important;
}

.terminal-count {
	font-size: 16px;
	margin-bottom: 5px;
}

.terminal-type-filters {
	display: flex;
	align-items: center;
	gap: 20px;
}

.terminal-type-filters > span {
	font-weight: 700;
}

.terminal-types {
	display: flex;
	align-items: center;
	gap: 20px;
}

.terminal-type-filter-btn {
	display: flex;
	align-items: center;
	padding: 10px 15px;
	border-radius: 24px;
	border-top-left-radius: 0;
	background-color: var(--wp--preset--color--off-white);
	color: var(--wp--preset--color--dark-blue) !important;
	text-decoration: underline;
}

.terminal-type-filter-btn:hover {
	background-color: var(--wp--preset--color--light-gray);
	color: var(--wp--preset--color--dark-gray);
}

.terminal-type-filter-btn.inactive {
	background-color: transparent;
	color: var(--wp--preset--color--dark-gray);
	opacity: 0.5;
}

.terminal-type-filter-btn svg {
	display: inline-block;
	width: 18px;
	margin-right: 10px;
}

#terminal-map-container {
	display: flex;
	position: relative;
	padding: 0 !important;
	margin-top: 0 !important;
	/*margin-bottom: 100px;*/
}

#terminal-map-container:not(.filtered-by-state) .terminal-list-area {
	position: absolute;
	left: 30px;
	top: 30px;
	z-index: 1;
	background-color: var(--wp--preset--color--white);
	border-radius: 25px;
	border-top-left-radius: 0;
	box-shadow: 0 0 15px rgba(21,31,109,0.4);
}

#terminal-map-container.filtered-by-state .terminal-list-area {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: 425px;
	height: calc(100vh - 115px);
	min-height: 500px;
	position: relative;
	z-index: 1;
	box-shadow: 0 0 15px rgba(21,31,109,0.4);
}

#terminal-map-container .terminal-state-filter {
	padding: 25px;
}

#terminal-map-container .terminal-state-filter label {
	display: block;
	margin-bottom: 5px;
}

#terminal-map-container:not(.filtered-by-state) .terminal-state-filter label {
	font-size: 18px;
	font-weight: 700;
	color: var(--wp--preset--color--dark-blue);
}

#terminal-map-container.filtered-by-state .terminal-state-filter label {
	font-size: 20px;
	font-weight: 300;
}

#terminal-map-container #terminal-map {
	width: 100%;
	height: calc(100vh - 115px);
	min-height: 500px;
	max-width: unset !important;
	margin-top: 0 !important;
}

#terminal-map-container #terminal-map > * {
	max-width: unset !important;
}

select.state-dropdown {
	display: block;
	font-size: 16px;
	padding: 10px;
	min-width: 350px;
	border-color: var(--wp--preset--color--light-gray);
	border-radius: 5px;
}

#terminal-map-container .terminal-use-location {
	padding: 25px;
	border-top: 1px solid var(--wp--preset--color--off-white);
	text-align: center;
}

#terminal-map-container.filtered-by-state .terminal-use-location {
	display: none !important;
}

a.use-my-location {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--dark-blue) !important;
	text-decoration: underline;
}

a.use-my-location > svg {
	width: 15px;
}

a.use-my-location > svg path {
	fill: transparent;
	stroke: var(--wp--preset--color--dark-blue);
	stroke-width: 1;
}

.mobile-terminal-filters .terminal-use-location {
	margin-top: 10px;
}

#terminal-map-container .terminal-list {
	display: none;
	overflow: auto;
	height: 100%;
}

#terminal-map-container .terminal-list::-webkit-scrollbar {
	width: 11px;
}

#terminal-map-container .terminal-list::-webkit-scrollbar-track {
	background: var(--wp--preset--color--off-white);
}

#terminal-map-container .terminal-list::-webkit-scrollbar-thumb {
	border-radius: 6px;
	background: var(--wp--preset--color--light-gray);
	border: 3px solid var(--wp--preset--color--off-white);
}

#terminal-map-container.filtered-by-state .terminal-list {
	display: block;
}

#terminal-map-container .show-more-container {
	display: none;
	justify-content: center;
	align-items: center;
	height: 80px;
	width: 100%;
	border-top: 2px solid var(--wp--preset--color--light-gray);
	flex-shrink: 0;
}

#terminal-map-container.filtered-by-state .show-more-container {
	display: flex;
}

/* Terminal Card Styles */
.terminal-card {
	border: 2px solid var(--wp--preset--color--light-gray);
	background-color: var(--wp--preset--color--white);
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1.4;
}

.terminal-card.active {
	border-color: var(--wp--preset--color--dark-blue);
	background-color: #eff5fa;
}

.terminal-card.unloaded,
.terminal-card.excluded {
	display: none !important;
}

a.terminal__directions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--wp--preset--color--dark-blue) !important;
	text-decoration: underline;
}

a.terminal__directions:hover {
	color: var(--wp--preset--color--dark-gray) !important;
	text-decoration: none;
}

a.terminal__directions > svg {
	width: 12px;
}

a.terminal__directions > svg path {
	fill: transparent;
	stroke: var(--wp--preset--color--dark-blue);
	stroke-width: 1;
}

a.terminal__directions:hover > svg path {
	stroke: var(--wp--preset--color--dark-gray);
}

.terminal-card .terminal__title {
	font-size: 20px;
	font-weight: 300;
	line-height: 22px;
}

.terminal-card .terminal__buttons {
	display: flex;
	flex-direction: column;
	width: 100%;
	align-items: flex-end;
	justify-content: flex-end;
	row-gap: 15px;
}

a.terminal-btn {
	padding: 10px 20px;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--wp--preset--color--dark-blue) !important;
	border: 2px solid var(--wp--preset--color--blue);
	border-radius: 25px;
	border-top-left-radius: 0;
}

a.terminal-btn i {
	font-size: 14px;
}

a.terminal-btn:hover {
	background-color: var(--wp--preset--color--blue);
}

a.terminal-btn.disabled {
	pointer-events: none;
	opacity: 0.5;
}

/* Mobile Hero Styles */
body.kiba-mobile-menu #page_content #hero.terminal-hero {
	padding-top: 60px;
	background: none;
	background-color: var(--wp--preset--color--white);
	min-height: unset;
	height: auto;
}

body.kiba-mobile-menu #page_content #hero.terminal-hero:after {
	display: none;
}

body.kiba-mobile-menu #page_content #hero.terminal-hero .terminal-hero__title {
	background-image: none;
	padding: 15px var(--browser-padding);
}

body.kiba-mobile-menu #page_content #hero.terminal-hero .terminal-hero__title h1 {
	color: var(--wp--preset--color--dark-gray);
}

body.kiba-mobile-menu #page_content #hero.terminal-hero .terminal-hero__image {
	display: none;
}

/* Mobile Styles */
@media only screen and (min-width: 991px) {
	#terminal-map-top .terminal-types {
		display: flex !important;
	}

	#terminal-map-container .show-more-container {
		height: calc(80px + ((100vw * (46.875 / 1500)) * 0.75));
		padding-top: 20px;
		align-items: flex-start;
	}

	#terminal-map .gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom {
		bottom: calc((100vw * (46.875 / 1500)) + 100px) !important;
	}

	#terminal-map-container.filtered-by-state #terminal-map div:has(.gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom > gmp-internal-camera-control) + div > div {
		bottom: 10px !important;
	}

	#terminal-map-container:not(.filtered-by-state) #terminal-map div:has(.gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom > gmp-internal-camera-control) + div > div {
		bottom: calc(100vw * (46.875 / 1500)) !important;
	}

	#terminal-map div:has(.gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom > gmp-internal-camera-control) + div + div + div > div {
		bottom: calc(100vw * (46.875 / 1500)) !important;
	}
}

@media only screen and (max-width: 990px) {
	#terminal-map-top {
		margin-top: 0 !important;
		padding: 0 var(--browser-padding) 20px;
	}

	#terminal-map-top .mobile-terminal-filters {
		margin-left: calc(-1 * var(--browser-padding)) !important;
    	margin-right: calc(-1 * var(--browser-padding)) !important;
		padding: 15px var(--browser-padding);
		margin-bottom: 15px;
		box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
		width: calc(100% + (2 * var(--browser-padding)));
		max-width: calc(100% + (2 * var(--browser-padding))) !important;
	}

	#terminal-map-top .terminal-type-filters {
		flex-direction: column;
		align-items: unset;
		gap: unset;
	    border: 1px solid var(--wp--preset--color--light-gray);
	    border-radius: 5px;
	}

	#terminal-map-top .terminal-type-filters > span {
		padding: 6px 12px;
		display: flex;
	    justify-content: space-between;
	    align-items: center;
	    cursor: pointer;
	}

	#terminal-map-top .terminal-type-filters > span:after {
		content: '\f078';
		font-family: 'fontawesome';
		font-size: 14px;
		line-height: 1;
		color: var(--wp--preset--color--dark-blue);
	}

	#terminal-map-top .terminal-type-filters.open > span:after {
		transform: rotate(180deg);
	}

	#terminal-map-top .terminal-types {
		flex-direction: column;
		align-items: flex-start;
		padding: 10px 12px;
		border-top: 1px solid var(--wp--preset--color--light-gray);
		display: none;
	}

	#terminal-map-top select.state-dropdown {
		min-width: unset;
		width: 100%;
	}

	#terminal-map-top .terminal-types > a:not(:last-child) {
		margin-bottom: 10px;
	}

	#terminal-map-top .terminal-type-filter-btn {
		padding: 0;
		border-radius: unset;
		background-color: transparent !important;
		text-decoration: none;
	}

	#terminal-map-top .terminal-type-filter-btn svg {
		width: 15px;
		margin-right: 7.5px;
	}

	#terminal-map-top .terminal-type-filter-btn:before {
		/*content: '\f14a';*/
		content: '\f00c';
		font-family: 'fontawesome';
		font-size: 14px;
		line-height: 1;
		background-color: var(--wp--preset--color--dark-blue);
		color: var(--wp--preset--color--white);
		border: 1px solid transparent;
		margin-right: 10px;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 16px;
		height: 16px;
	}

	#terminal-map-top .terminal-type-filter-btn.inactive {
		opacity: 1;
	}

	#terminal-map-top .terminal-type-filter-btn.inactive:before {
		background-color: var(--wp--preset--color--white);
		color: transparent;
		border: 1px solid var(--wp--preset--color--light-gray);
	}

	#terminal-map-container {
		flex-direction: column-reverse;
	}

	#terminal-map-container:not(.filtered-by-state) .terminal-list-area {
		display: none;
	}

	#terminal-map-container.filtered-by-state .terminal-list-area {
		width: 100%;
		height: auto;
		max-height: 600px;
	}

	#terminal-map-container.filtered-by-state .terminal-list-area.empty-list {
		min-height: unset !important;
	}

	#terminal-map-container.filtered-by-state .terminal-list-area.empty-list .terminal-list:before {
		content: 'There are no locations that match your search.';
	    padding: 20px var(--browser-padding);
	    display: block;
	    text-align: center;
	}

	.terminal-card .terminal__buttons {
		flex-direction: column;
		justify-content: unset;
		align-items: flex-start;
		row-gap: 15px;
	}

	#terminal-map-container:not(.filtered-by-state) #terminal-map .gm-style {
		height: calc(100% - ((100vw * (46.875 / 1500)))) !important;
	}
}

@media only screen and (max-width: 700px) {
	#terminal-map-container #terminal-map {
		height: 100vw;
		min-height: unset;
	}
}