/*--------------------------------------------------------------
# Reset
--------------------------------------------------------------*/

html {
	box-sizing: border-box;
	font-size: 16px;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
	margin: 0;
	padding: 0;
	font-weight: normal;
}

ol,
ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
}

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
	--dark-gray: hsl(0, 0%, 17%);
	--gray: hsl(0, 0%, 59%);
	--light-gray: #d8d8d8;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

body {
	font: 18px 'Rubik', sans-serif;
	color: var(--dark-gray);
}

h1 {
	color: #fff;
	font-size: 1.5rem;
	font-weight: 600;
	text-align: center;
	margin-bottom: 2rem;
	line-height: 0.8;
}

@media (min-width: 1024px) {
	h1 {
		font-size: 1.9rem;
		line-height: 1;
	}
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.header {
	height: 300px;
	padding-top: 2rem;
	background: url('./images/pattern-bg-mobile.png') no-repeat center;
	background-size: cover;
}

.container {
	padding: 0 1.5rem;
	max-width: 1160px;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.header {
		height: 275px;
		background: url('./images/pattern-bg-desktop.png') no-repeat center;
		background-size: cover;
	}
}

/*--------------------------------------------------------------
# Form
--------------------------------------------------------------*/

form {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 550px;
	margin: auto;
	margin-bottom: 1.5rem;
}

input {
	font-size: 1rem;
	font-weight: 400;
	flex: 1;
	padding: 0 1.3rem;
	height: 60px;
	box-sizing: border-box;
	margin: 0;
	border: 1px solid white;
	appearance: none;
	border-radius: 15px 0 0 15px;
}

input:focus {
	border-color: var(--dark-gray);
}

input:focus {
	outline: none;
}

input:placeholder {
	color: var(--light-gray);
}

button {
	background-color: #000;
	width: 55px;
	height: 60px;
	border: 1px solid #000;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	border-radius: 0 15px 15px 0;
	transition: background 0.3s ease;
}

button:hover {
	background-color: var(--dark-gray);
}

button img {
	width: 0.75rem;
	height: auto;
}

@media (min-width: 1024px) {
	form {
		margin-bottom: 2.5rem;
	}
}

/*--------------------------------------------------------------
# Results
--------------------------------------------------------------*/
.results {
	padding: 1.5rem 0;
	background: white;
	border-radius: 15px;
	text-align: center;
	position: relative;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
		0 8px 10px -6px rgb(0 0 0 / 0.1);
	z-index: 999;
}

.result {
	padding: 0 1.5rem;
	margin-bottom: 1.75rem;
}

.result:last-child {
	margin-bottom: 0;
}

.result-label {
	color: var(--gray);
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1px;
	font-size: 0.75rem;
	margin-bottom: 0.5rem;
}

.result-value {
	font-size: 1.15rem;
	font-weight: 700;
}

@media (min-width: 1024px) {
	.results {
		text-align: left;
		padding: 2.5rem 0;
		display: grid;
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}

	.result {
		padding: 0 2rem;
		margin-bottom: 0;
		position: relative;
	}

	.result-label {
		margin-bottom: 1rem;
	}

	.result:after {
		content: '';
		position: absolute;
		right: 0;
		top: 4px;
		width: 1px;
		height: calc(100% - 8px);
		background-color: var(--light-gray);
	}

	.result:last-child:after {
		content: none;
	}

	.result-value {
		font-size: 1.6rem;
		font-weight: 500;
	}
}

/*--------------------------------------------------------------
# Map
--------------------------------------------------------------*/
#map {
	height: calc(100vh - 300px);
	min-height: 530px;
	background: #f5f5f5;
}

@media (min-width: 1024px) {
	#map {
		height: calc(100vh - 275px);
	}
}
