/* Base styles */
:root {
	--deepblue: #05203C;
	--lightblue: #B7CEF2;
	--blue: #0062E3;
	--grey: #E0E4E9;
	--smooth: all 0.3s ease 0s;
}

* {
	box-sizing: border-box;
}

/* Typography */

/* Normal */
@font-face {
	font-family: 'Relative Normal';
	src: url('https://skyscanner.gaindev.co.uk/map/fonts/Skyscanner-Relative-normal-400-100.woff2') format('woff2'),
	url('https://skyscanner.gaindev.co.uk/map/fonts/Skyscanner-Relative-normal-400-100.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Bold */
@font-face {
	font-family: 'Relative Bold';
	src: url('https://skyscanner.gaindev.co.uk/map/fonts/Skyscanner-Relative-normal-700-100.woff2') format('woff2'),
	url('https://skyscanner.gaindev.co.uk/map/fonts/Skyscanner-Relative-normal-700-100.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Thick */
@font-face {
	font-family: 'Relative Thick';
	src: url('https://skyscanner.gaindev.co.uk/map/fonts/Skyscanner-Relative-normal-900-100.woff2') format('woff2'),
	url('https://skyscanner.gaindev.co.uk/map/fonts/Skyscanner-Relative-normal-900-100.woff') format('woff');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

html, body {
	box-sizing: border-box;
	font-family: 'Relative Normal';
	height: 100%;
	margin: 0;
	width: 100%;
}

h2 {
	font-family: 'Relative Thick';
	font-size: 3rem;
	line-height: 2.5rem;
	letter-spacing: -0.12rem;
	margin: 0 0 1rem;
	font-weight: 900;
	font-style: normal;
}

h3 {
	font-size: 1.25rem;
	line-height: 1.5rem;
	margin: 0 0 0.5rem;
	font-weight: 700;
	font-style: normal;
	font-family: 'Relative Bold';
}

p {
	font-size: 1rem;
	line-height: 1.5rem;
	margin: 0 0 1.5rem;
	font-style: normal;
	font-weight: 400;
}

strong {
	font-family: 'Relative Bold';
}

.explore-link {
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: var(--smooth);
}

.explore-link .arrow {
	transition: var(--smooth);
	transform: translateX(0);
}

.explore-link:hover, .close-map:hover {
	opacity: 0.7;
}

.explore-link:hover .arrow {
	transform: translateX(0.5rem);
}

#map-container {
	/*max-width: 807px;*/
	width: 100vw;
	margin: 0 auto;
	height: 100vh;
	position: relative;
	background: var(--grey);
	overflow: hidden;
	display: flex;
}

/* Map styles */
#map, #map-us, #map-can {
	width: 100%;
	height: 100%;
}

#map-us, #map-can {
	opacity: 0;
	transition: opacity 0.4s ease 0s;
}
/* Map overlay styles */
.map-overlay {
	position: relative;
	top: 0;
	bottom: 0;
	background: var(--deepblue);
	width: 50%;
	min-width: 50%;
	padding: 4rem 1rem;
	transition: var(--smooth);
	left: -50%;
	opacity: 0;
	height: 100%;
	z-index: 2;
}

.map-overlay.active {
	opacity: 1;
	left: 0;
}

.map-overlay h2, .map-overlay h3, .map-overlay p, .map-overlay p a {
	color: #FFF;
}

.map-overlay p a {
	transition: var(--smooth);
}

.map-overlay p a:hover {
	color: var(--lightblue);
	text-decoration: none;
}

/* Close button styles */
.map-overlay .close-map {
	position: absolute;
	top: 1.5625rem;
	right: 1.375rem;
	border: none;
	width: 2rem;
	height: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: var(--smooth);
}

/* Explore overlay */
#explore-content {
	display: none;
}

#explore-content p {
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.75rem;
}
#explore-content p strong {
	font-size: 1.5rem;
	line-height: 2rem;
}

/* Country active states */
.sm_state.active {
	stroke: var(--blue);
	fill: var(--lightblue);
}

.overlay-content {
	display: none;
	overflow: auto;
	height: 100%;
}

.overlay-content.active {
	display: block;
}

#close-country-map {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 40px;
	height: 40px;
	background: #FFF;
	border-radius: 50%;
	padding: 5px;
	z-index: 30;
	cursor: pointer;
	box-shadow: 0 4px 14px 0 rgba(37, 32, 31, 0.25);
	transition: all 0.35s ease 0s;
	display: none;
}

@media screen and (max-width: 767px) {
	#close-country-map {
		right: auto;
		left: 1.5rem;
	}
}

#close-country-map::before, #close-country-map::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 24px;
	height: 1px;
	background: rgba(99,99,99,1);
	margin: auto;
	transition: all 0.35s ease 0s;
}

#close-country-map::before {
	transform: rotate(45deg);
}
#close-country-map::after {
	transform: rotate(-45deg);
}


#close-country-map:hover {
	background: var(--deepblue);
}

#close-country-map:hover::before, #close-country-map:hover::after {
	background: #FFF;
}

/* Core map overrides */
#map_outer, #map-us_outer, #map-can_outer {
	left: auto !important; right: 0.1875rem;; bottom: 0; top: auto !important;
}
/*#map_holder, #map_inner {height: 100% !important;}*/

#map.narrow, #map-us.narrow, #map-can.narrow {
	width: 50% !important;
}

#map-us.narrow, #map-can.narrow {
	left: auto;
}

#mapHolder.full {
	width: 100% !important;
}

#map_holder, #map_inner, #map_inner svg, #map-us_holder, #map-us_inner, #map-us_inner svg, #map-can_holder, #map-can_inner, #map-can_inner svg {
	width: 100% !important;
	overflow: visible !important;
	/*height: 100% !important;*/
}

#map_access, #map-us_access, #map-can_access {
	display: none;
}

/* Map Zoom */
#map_zoom, #map-us_zoom, #map-can_zoom {
	background: #FFF;
	box-shadow: 0px 4px 14px 0px rgba(37, 32, 31, 0.25);
	border-radius: 0.5rem;
	right: 1.5rem;
	height: 4.375rem;
	top: auto !important;
	bottom: 1.5rem !important;
	left: auto !important;
	position: fixed !important;
}

#map_zoom::before, #map-us_zoom::before, #map-can_zoom::before {
	display: block;
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 1.625rem;
	height: 0.0625rem;
	background: #E0E4E9;
	margin: auto;
	z-index: 3;
}


#map_zoom svg, #map-us_zoom svg, #map-can_zoom svg {
	transform: scale(0.7);
	transform-origin: top;
	top: 0.3125rem !important;
	left: 0 !important;
}

/* Plus minus box */
#map_zoom path:nth-of-type(1), #map_zoom path:nth-of-type(3), #map-us_zoom path:nth-of-type(1), #map-us_zoom path:nth-of-type(3), #map-can_zoom path:nth-of-type(1), #map-can_zoom path:nth-of-type(3) {
	stroke: none;
	fill: #FFF;
}

/* Plus minus icons */
#map_zoom path:nth-of-type(2), #map_zoom path:nth-of-type(4), #map-us_zoom path:nth-of-type(2), #map-us_zoom path:nth-of-type(4), #map-can_zoom path:nth-of-type(2), #map-can_zoom path:nth-of-type(4) {
	fill: #444560;
	stroke: #444560;
}

/* Table styles */

.content-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	border: 1px solid #545860;
	overflow: hidden;
	table-layout: fixed;
}

.content-table th{
	padding: 0.625rem 0.4rem;
	text-align: center;
	background-color: #0062E3;
	color: white;
	font-size: 1rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.25rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
	min-height: 3.75rem;
	display: table-cell;
	vertical-align: center;

}

.content-table td {
	padding: 0.625rem 0.4rem;
	color: white;
	text-align: center;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.25rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
	min-height: 3.75rem;
	display: table-cell;
	vertical-align: center;
}

.content-table tr:nth-of-type(even) {
	background-color: #545860;
}

/* Popup style */
.tt_name_sm {
	color: #FFF !important;
	font-family: "Relative Bold";
	font-size: 0.875rem;
	line-height: 1.25rem;
	position: relative;
	z-index: 2;
}

#map_outer, #map-us_outer, #map-can_outer {
	display: none !important;
}
.tooltip {
	display: none;
}

#explore-overlay p:nth-last-of-type(1) {
	margin-bottom: 0;
}

.map-overlay.active:has(#explore-overlay.active) .close-map {
	display: none;
}

.sm_location:hover {
	stroke: var(--blue);
	fill: #B7CEF2;
}

/* Mobile styles */
@media screen and (max-width: 767px) {
	p{
		font-size: 0.8rem;
		line-height: 1.2rem;
	}

	.content-table th, .content-table td {
		font-size: 0.8rem;
		line-height: 1.2rem;
	}

	.map-overlay {
		width: 100%;
		min-width: 100%;
		padding: 1.5rem 1.5rem 0;
		height: 22rem;
		top: auto;
		bottom: -22rem;
		position: fixed;
		left: 0;
	}

	.map-overlay.active {
		bottom: 0;
		height: 22rem;
	}

	.map-overlay.active:has(#explore-overlay.active) {
		height: 22rem
	}

	.map-overlay .close-map {
		top: 0.5rem;
		right: 0.5rem;
	}

	h2 {
		font-size: 2rem;
		letter-spacing: -0.0625rem;
		line-height: 2rem;
	}

	#map_zoom, #map-us_zoom, #map-can_zoom {
		top: 1.5rem !important;
		bottom: 0 !important;
	}
}