section {
	padding: 0;
	position: relative;
	/*padding-top: 20px;*/
}

/*h1 {
	position: absolute;
}*/
#map {
	height: 85vh;
	width: 100%;
	margin: auto;
}

.cardstyle {
	width: 100%;
	height: 220px;
	margin-bottom: 10px;
	display: grid;
	grid-template-columns: 250px 1fr;
	grid-template-areas: "card-photo card-info";
	gap: 15px;
	border: none;
}

.cardstyle .cardstyle-info {
	grid-area: card-info;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"card-name card-name"
		"card-address card-address"
		"card-cats card-cats"
		"card-reviews card-reviews"
		"card-distance card-services"
	;
	align-items: center;
	row-gap: 5px;
}

.cardstyle .cardstyle-img {
	grid-area: card-photo;
	width: 250px;
	max-height: 100%;
	border-radius: 4px;
	overflow: hidden;
}

.cardstyle .cardstyle-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

a.cardstyle-info-name {
	grid-area: card-name;
	width: 100%;
	display: block;
	box-sizing: border-box;
	font-size: 1.25rem;
	font-weight: 600;
}

span.cardstyle-info-address {
	grid-area: card-address;
	display: inline-block;
	width: 100%;
	font-size: 0.85rem;
}

div.cardstyle-info-cats {
	grid-area: card-cats;
	min-height: 40px;
	box-sizing: border-box;
	font-size: 0.80rem;
	line-height: 1.8rem;
}

.cardstyle-info-categories span,
.cardstyle-info-subcategories span {
	margin: 0 5px 5px 0;
	border: 1px solid #e6e6e6;
	padding: 0px 8px;
	border-radius: 6px;
	color: #767676;
	display: inline-block;
}

div.cardstyle-info-services {
	grid-area: card-services;
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
}

div.cardstyle-info-services img {
	width: 32px;
}

span.cardstyle-info-distance {
	grid-area: card-distance;
	color: #71818a;
	font-size: 0.85rem;
}

span.cardstyle-info-distance img {
	width: 16px;
	vertical-align: middle;
	margin-right: 5px;
}

span.cardstyle-info-open {
	color: #38a6a6;
	font-size: 0.85rem;
}

span.cardstyle-info-open.closed {
	color: #e17950;
}

span.cardstyle-info-rating {
	grid-area: card-reviews;
	font-size: .8rem;
	display: flex;
	align-items: center;
	color: #71818a;
}

span.cardstyle-info-rating img {
	width: 16px;
	vertical-align: middle;
	margin-right: 5px;
}

input#searchplace,
gmp-place-autocomplete#searchplace {
	width: 350px;
	padding: 10px;
	font-size: 1.1rem;
}

.btn-showlegend {
	float: right;
	margin-top: -32px;
	background-color: white;
	border: 1px solid;
}

div#maplegend {
	padding: 20px;
	background-color: #fff;
	display: inline-block;
	position: absolute;
	z-index: 10;
	right: 0;
	opacity: 0;
	visibility: hidden;
	transition: all .5s ease-in-out;
}

#maplegend.show {
	opacity: 1;
	visibility: visible;
	transition: all .5s ease-in-out;
}

#maplegend ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.colors {
	display: inline-block;
	width: 20px;
	height: 20px;
	padding: 0;
	margin: 0;
	margin-right: 10px;
}

.color-1 {
	background-color: #FFA506;
}

.color-2 {
	background-color: #D00003;
}

.color-3 {
	background-color: #880021;
}

.color-4 {
	background-color: #670067;
}

.color-5 {
	background-color: #34019A;
}

.color-6 {
	background-color: #5595C9;
}

.color-7 {
	background-color: #3737F4;
}

.color-8 {
	background-color: #FD3401;
}

.color-9 {
	background-color: #C8F115;
}

.color-10 {
	background-color: #5CB326;
}

.color-11 {
	background-color: #FE6602;
}

.color-12 {
	background-color: #FFED00;
}

@media (max-width: 600px) {
	input#searchplace {
		top: 60px !important;
	}

	.cardstyle {
		height: unset;
		grid-template-areas: "card-photo" "card-info";
		grid-template-columns: 1fr;
	}

	.cardstyle .cardstyle-img {
		width: 100%;
		height: 150px;
	}

	.cardstyle .cardstyle-info {
		width: 100%;
		box-sizing: border-box;
	}
}