/* Global styles to fill the height of the viewport */

main
{
	display: flex;
}

a
{
	text-decoration: none;
}

/* Map holder */

.map,
.map-holder
{
	width: 100%;
	min-height: 550px;
	flex: 1;
	display: flex;
	position: relative;
}

/* Find modal */
.find-modal
{
	display: none;
	z-index: 300;
	width: 90%;
	left: 50%;
	padding:0 0 10px 0;
	transform: translate(-50%, 0);
	max-width: 900px;
	position: absolute;
	height: auto;
	bottom: 0;
	top: 0;
	right: 0;
	margin-top: 110px;
	border-radius: 10px 10px 0 0;
}

.find-modal-header
{
	position: relative;
	padding-left: 20px;
	padding-right: 20px;
	border-radius: 10px 10px 0 0;
	background-color: var(--nsw-brand-dark);
	color: white;
	display: flex;
	justify-content: space-between;
	line-height: 70px;
}

.find-modal-title {
	font-size: 1.5em;
	text-align: center;
}

.find-modal-body {
	padding: 29px 36px;
	text-align: center;
	/*width: 300px;*/
	margin: auto;
	overflow-y: auto;
	height: 90%;
}

.find-modal-body button {
	font-weight: bold;
}

.find-modal-body option {
	font-weight: bold;
}

.find-modal-section {
	padding-bottom: 50px;
}

.select2 {
	text-align: left !important;
	margin-bottom: 10px !important;
}

.select2-selection--single .select2-selection__rendered {
	line-height: 62px !important;
}

.select2-selection--multiple .select2-selection__rendered {
	line-height: 60px !important;
}

.select2-selection--multiple .select2-search__field {
	height: 100% !important;
	text-indent: 5px !important;
	line-height: 20px !important;
}

.select2-selection__choice {
	line-height: 32px !important;
	border: none !important;
	height: 32px !important;
	padding: 0 !important;
	margin: 14px 10px 14px 0 !important;
	padding-left: 12px !important;
}

.select2-selection__choice__display {
	padding-left: 0 !important;
	padding-right: 25px !important;
}

.select2-selection {
	border: #eef2f7 1px solid !important;
	min-height: 62px !important;
}

.select2-selection--single {
	text-indent: 15px !important;
}

.select2-selection--multiple {
	min-height: 62px !important;
	margin: 0 !important;
	padding: 0 !important;
	padding-left: 10px !important;
}

.select2-dropdown {
	border: #eef2f7 1px solid !important;
}

.select2-results__option {
	margin: 0 !important;
	padding: 8px 8px 8px 20px !important;
	border-bottom: 2px solid var(--nsw-off-white);
}

.select2-results__option:last-of-type {
	border-bottom: 0 !important;
}

.select2-selection__arrow {
	display: none !important;
}
.select2-selection__choice__remove {
	background-color: transparent; !important;
	border-right: none !important;
	position: absolute !important;
	left: auto !important;
	right: 5px !important;
	bottom: 0 !important;
}

.select2-selection__choice__remove:hover,
.select2-selection__choice__remove:focus {
	background-color: transparent !important;
}

.select2-selection--single {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.75rem center !important;
	background-size: 16px 12px !important;
}

.select2-selection__placeholder {
	color: black !important;
}

.find-button {
	background-color: var(--nsw-brand-dark);
	border: none;
	color: white !important	;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	border-radius: 5px;
	width: 100%;
	height: 60px;
	cursor: pointer;
}

	.find-button:disabled {
		background-color: rgb(57, 70, 112);
		color: white !important;
		cursor: not-allowed;
	}

a.find-clear-btn
{
	width: 40px;
	height: 40px;
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: center center;
	cursor: pointer;
	border-radius: 20px;
	z-index: 300;
	color: white;
}

a.find-close-btn
{
	width: 40px;
	height: 40px;
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: center center;
	cursor: pointer;
	border-radius: 20px;
	z-index: 300;
	color: white;
}

/* Find bar */
.find-container
{
	z-index: 1;
	display: flex;
	justify-content: space-between;
	position: absolute;
	top: 20px;
	background-color: transparent;
	width: 100vw;
	flex-wrap: wrap;
}

.find-bar
{
	width: 122px;
	height: 48px;
	background-color: white;
	color: black;
	text-align: center;
	border-radius: 4px;
	box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
	position: relative;
}

.spacer {
	width: 354px;
}

@media (max-width: 850px) {
	.find-container {
		justify-content: left;
	}
	
	.spacer {
		display: none;
	}
	
	.find-bar-container
	{
		margin-left: 20px;
		margin-bottom: 20px;
	}
	
	.search-bar
	{
		margin-left: 20px;
	}
	
	.map-controls
	{
		top: 150px !important;
	}
	
	.map,
	.map-holder
	{
		min-height: 660px;
	}
}

.find-bar-container
{
	height: 48px;
}

.find-bar-active
{
	height: 48px;
	background-color: white;
	color: black;
	text-align: center;
	border-radius: 4px;
	box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
}

.find-bar-active a
{
	color: black;
	text-decoration: none;
}

.find-bar-active-filter
{
	height: 48px;
	width: 150px;
	float: left;
	position: relative;
}

.find-bar-active-clear
{
	height: 48px;
	width: 68px;
	float: left;
	position: relative;
	border-left: #ECECEC 1px solid;
	cursor: pointer;
}

.find-text
{
	font-size: 16px;
	display: flex;
}

.find-clear
{
	font-size: 16px;
}

#filter-count
{
	margin-left: 8px;
	position: relative;
}

#filter-dot {
	position: relative;
}

#filter-dot-number {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.fa-circle
{
	color: var(--nsw-brand-supplementary);
}

.center
{
	margin: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.search-bar
{
	height: 48px;
	background-color: white;
	color: black;
	text-align: center;
	border-radius: 4px;
	box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
	margin-right: 20px;
	max-width: 334px;
}

.search-bar-icon
{
	height: 48px;
	width: 70px;
	float: left;
	position: relative;
	border-right: #ECECEC 1px solid;
}

.fa-xmark
{
	cursor: pointer;
}

.search-bar-field
{
	height: 48px;
	width: 264px;
	float: left;
	position: relative;
}

.address-search
{
	width: 100%;
	border: none;
	padding-left: 16px;
	padding-right: 16px;
	font-size: 14px;
	height: 48px;
	font-family: 'Open Sans', Helvetica, sans-serif;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.address-search::-webkit-search-cancel-button {
	display: none;
}

.address-search:focus
{
	outline: none;
}

::placeholder
{
	color: #BDBDBD;
	opacity: 1;
}

.tt-input
{
	height: 48px;
}

.tt-suggestion
{
	padding: 0 !important;
}

.address-search-suggestion-label
{
	padding: 5px 10px;
	border-bottom: #ECECEC 1px solid;
	font-size: 14px;
	font-family: 'Open Sans', Helvetica, sans-serif;
}

.address-search-suggestion-label:hover
{
	background-color: #5897fb;
	color: white;
}

.tt-list
{
	width: 335px !important;
	right: 0 !important;
	top: 10px !important;
	border: none !important;
	border-radius: 4px;
	box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
}

/* Map controls */

.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-group {
	margin-right: 20px;
}

.map-controls
{
	margin: 0;
	padding: 0;
	list-style-type: none;
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 0 10px 10px 0;
	position: absolute;
	top: 90px;
	left: 0;
	display: none;
	width: 71px;
	height: 282px;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
}

.map-controls li
{
	width:100%;
	margin:0;
	padding: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.map-controls li.no-border
{
	border-top:none;
}

.map-controls li a
{
	color:#fff;
	background-repeat: no-repeat;
	background-position: 50% 14px;
	background-size: 24px 24px;
	width:100%;
	display:block;
	padding-top:46px;
	height:70px;
	box-sizing: border-box;
	text-align: center;
	font-size: 0.7em;
	font-weight: bold;
	cursor: pointer;
}

.map-controls li a.in-demand-btn
{
	background-image: url('/img/in-demand-icon-white.png');
	opacity: 0.5;
}

.map-controls li a.satellite-btn
{
	background-image: url('/img/sat-icon-white.png');
	opacity: 0.5;
}

.map-controls li a.terrain-btn
{
	background-image: url('/img/terrain-icon-white.png');
	opacity: 0.5;
}

.map-controls li a.data-btn
{
	background-image: url('/img/data-icon-white.png');
	opacity: 0.5;
}

.map-controls li a.active
{
	opacity: 1;
}

/* Map target */

.map-target
{
	position: absolute;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 54px;
	margin-top: -27px;
	margin-left: -27px;
	border-radius: 27px;
	box-sizing: border-box;
	border: 5px solid #fff;
}

/* Map result tiles */

.map-results
{
	position: absolute;
	bottom:0;
	left:0;
	right:0;
	margin-left:auto;
	margin-right:auto;
	max-width: 900px;
	width: 90%;
	max-height: 30%;
	/*overflow: auto; implemented by simple-scroll plugin*/
	display: flex;
	flex-direction: column;
}

#otg-results
{
	padding-bottom:12px;
	margin-top: auto;
	height: fit-content;
}

.otg-result .searching-msg {
	padding:20px;
	margin: 0;
}

.otg-result
{
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 10px;
	color: var(--nsw-off-white);
	display: flex;
	flex-direction: row;
	align-items: stretch;
	height:auto;
	margin-bottom: 10px;
	cursor: pointer;
	backdrop-filter: blur(5px);
}

.otg-result:hover
{
	background-color: rgba(0, 0, 0, 0.7);
}

.otg-result.no-results,
.otg-result.not-native
{
	cursor: auto;
}

.otg-result .color-tag
{
	min-width:16px;
	width:16px;
	border-radius: 10px;
	margin-left: 10px;
	margin-top: 10px;
	margin-bottom: 10px;
	border: 2px dotted lightgrey;
}

.otg-result .color-tag-in-demand
{
	border-color: var(--nsw-palette-orange-02) !important;
	border: 2px solid;
}

.otg-result .color-tag-highlighted
{
	border-color: #A6FF34 !important;
}

.otg-result .otg-info
{
	padding:16px 19px;
	font-size:0.9em;
	flex-grow: 2;
}

.otg-region
{
	color: var(--nsw-light-text);
	margin-bottom:4px;
}

.otg-name {
	font-weight: bold;
	margin-bottom: 4px;
}

.otg-clearing-category {
	padding-right: 19px;
	align-self: center;
}

.otg-result .otg-link
{
	min-width:48px;
	width:48px;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
	background-image: url('/img/chevron-right.png');
	background-size: 7px 11px;
	background-repeat: no-repeat;
	background-position: center center;
	display:block;
}

/* No result tile */

.otg-result.no-results
{
	justify-content: center;
	align-items: center;
}

.otg-result.no-results .searching-msg,
.otg-result.no-results .no-results-msg
{
	padding: 16px 19px;
	font-size: 0.9em;
	color: #BBBDBD;
}

.otg-result.no-results .searching-loader
{
	border: 2px solid transparent;
	border-top: 2px solid #ffffff;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	animation: searching-loader-spin 0.75s linear infinite;
}

@keyframes searching-loader-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Result detail modal */

.otg-result-detail
{
	display: none;
	z-index:120;
	width: 90%;
	left:50%;
	padding:0 0 10px 0;
	transform: translate(-50%, 0);
	max-width: 900px;
	position:absolute;
	height:auto;
	bottom:0;
	top:0;
	right:0;
	margin-top:110px;
	border-radius: 10px 10px 0 0;
}

.otg-card-header
{
	position:relative;
	color: #fff;
	padding: 29px 36px;
	border-radius: 10px 10px 0 0;
	min-height: 67px;
}

a.close-btn
{
	position: fixed;
	display: block;
	right: 16px;
	top: 16px;
	width: 40px;
	height: 40px;
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: center center;
	cursor: pointer;
	border-radius: 20px;
	z-index:120;
}

a.close-btn-white
{
	background-image: url('/img/close-btn-icon-white.png');
}

a.close-btn-black
{
	background-image: url('/img/close-btn-icon-black.png');
}

.otg-mini-title {
	font-size: 0.8em;
	line-height: 0.9em;
	font-weight: bold;
}

.otg-title {
	font-size: 1.5em;
	line-height: 1.4em;
	margin-top:0.5em;
	margin-bottom:0.6em;
}

.otg-detail-box {
	margin: 18px;
	border-radius: 10px;
	background-color: var(--nsw-grey-04);
	padding: 16px 24px;
}

.otg-detail-box-title {
	font-weight: 700;
	margin: 8px 0;
}

.otg-detail-box-text {
	margin: 8px 0;
}

.otg-detail-box-button {
	padding-top: 18px;
	padding-bottom: 18px;
}

.email-taskforce-button {
	width: 100%;
}

.otg-in-demand-box {
	display: flex;
}

.otg-in-demand-box > div {
	flex-grow: 1;
}

.otg-in-demand-value {
	font-size: 150%;
}

@media all and (max-width: 600px) {
	
	.otg-result-detail {
		width: 100%;
		margin-top: 80px;
		max-width: 100%;
	}

	.find-modal {
		width: 100%;
		margin-top: 80px;
		max-width: 100%;
	}
	
	.otg-card-header
	{
		border-radius: unset;
	}

	#otg-results
	{
		padding-bottom:0;
	}

	.otg-result .otg-link
	{
		display: none;
	}

	.otg-result .otg-info {
		padding: 11px 14px;
		font-size: 0.8em;
	}
}

/* Modal and Simplebar overrides */

.jquery-modal
{
	overflow:hidden;
	z-index:300; /* puts it above the map zoom.*/
}

.simplebar-track.simplebar-vertical
{
	right:-15px;
}

.modal a.close-modal
{
	display: none;
}

/* TOGGLE SWITCH */
/* Taken from W3schools */
/* https://www.w3schools.com/howto/howto_css_switch.asp */

/* The switch - the box around the slider */
.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .2s;
	transition: .2s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .2s;
	transition: .2s;
}

input:checked + .slider {
	background-color: #2196F3;
}

input:focus + .slider {
	box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

.adjacent-regions-toggle {
	text-align: left;
	line-height: 34px;
	padding-bottom: 10px;
	display: none;
}

.adjacent-regions-toggle-text {
	padding-right: 10px;
}