/* Main listings page */
form input[type="checkbox"] {
	display: initial;
}

#realestate {
	border-bottom: 1px solid black;
	padding-bottom: 100px;
	margin-bottom: 100px;
}

#listings {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	align-content: flex-start;
	text-align: center;
}
.listing {
	display: inline-block;
	vertical-align: top;
	margin: 16px;
	width: 100%;
	max-width: 300px;
	height: 375px;
	border: 1px solid gray;
	border-radius: 5px;
	box-shadow: 0px 0px 5px 1px lightgray;
	overflow: hidden;
	&.selected {
		border: 2px solid black;
		box-shadow: 0px 0px 5px 1px black;
	}
}
.listing-icon.selected {
	box-shadow: 0px 0px 5px 1px black;
	border-radius: 40px;
}
a.listing-image {
	display: block;
	width: 100%;
	height: 71%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 8px 16px;
	cursor: pointer;
	text-decoration: none;
	color: white;
	font-weight: normal;
	> img {
		visibility: hidden;
	}
}
.listing-image-text-overlay {
	display: block;
	position: absolute;
	left: 0px;
	bottom: 0px;
	color: white;
	text-align: left;
	padding: 8px 16px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.listing-property-type {
	display: block;
	font-size: 11px;
	font-size: max(11px, min(31px, 0.647rem));
}
.listing-price {
	display: block;
	font-size: 24px;
	font-size: max(12px, min(44px, 1.412rem));
	font-weight: bold;
}
.listing-text {
	display: block;
	width: 100%;
	height: 29%;
	padding:
	background-color: white;
	padding: 8px 16px;
	color: black;
	text-align: left;
	font-size: 14px;
	font-size: max(12px, min(34px, 0.824rem));
	overflow: hidden;
	text-overflow: ellipsis;
}
a.listing-attributes {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	align-content: flex-start;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	color: black;
	font-weight: normal;
	> div {
		margin-right: 10px;
	}
}
a.listing-location {
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	color: black;
	font-weight: normal;
}
/* End Main Listings Page */

/* Individual Listing Pages */
#listing > div {
	&:not(:nth-of-type(1)) {
		margin: 40px 0px;
	}
	&:nth-of-type(1) {
		margin: 0px 0px 40px 0px;
	}
}
/* End Individual Listing Pages */

#map {
	width: 100%;
	height: 500px;
	margin: 0 auto;
}
@media (max-width: 800px) {
	#map {
		width: 70%;
		height: 200px;
	}
}