/*******************************************************************************
 * Mapper
 *
 * A modification for SMF 2.1 that creates a place finder map where users can
 * find their nearest store/office/gathering place/house of worship/whatever
 * from a list of options.
 *
 * Copyright (c) 2019 Jon Stovell
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 ******************************************************************************/

#mapper_header {
	margin: 2em 0;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}
#mapper_header .button {
	float: none;
}
.mapwrap .mapTabWrap {
	margin-bottom: 1em;
}
.mapwrap .buttonrow {
	margin: 4px 0;
}
.mapwrap .button {
	float: none;
	margin: 0;
}
.mapwrap .mapSearchTxt {
	font-style: italic;
	font-size: 90%;
	margin: 10px 0;
}
.mapwrap #mapResults {
	display: flex;
	flex-flow: row wrap;
}
.mapwrap #map {
	height: 500px;
	width: 100%;
}
.mapwrap .mapResultItem {
	margin: 1em 0 2em;
	padding: 1em;
	box-sizing: border-box;
	display: inline-block;
	width: 280px;
	vertical-align: top;
	flex: 1 0 auto;
}
.mapwrap .mapResultItem.selected_marker {
	background-color:#efefef;
}
.mapwrap .mapResultTitle {
	font-size: 1.5em;
}
.mapwrap .mapResultItem h3 {
	font-weight: 300;
	line-height: inherit;
}
.mapwrap .mapResultItem p {
	margin: 0.5em 0;
}
#location_list {
	list-style-type: decimal;
	column-width: 280px;
	column-gap: 40px;
}
#map_marker_edit {
	max-width: 800px;
	margin: auto;
}
#map_marker_edit input[type="text"],
#map_marker_edit input[type="email"],
#map_marker_edit input[type="tel"],
#map_marker_edit input[type="url"] {
	width: 100%;
	margin-bottom: 3px;
}
input[type="text"]:read-only,
input[type="email"]:read-only,
input[type="tel"]:read-only,
input[type="url"]:read-only {
	background-color: #f8f8f8;
	color: #777;
}
@media (min-width: 480px) {
	dl.settings dt {
		max-width: 30ch;
		width: 38%;
	}
	dl.settings dd {
		min-width: calc(100% - 32ch);
		width: 60%;
	}
}
@media (max-width: 479px) {
	th.address_level1, th.address_level2,
	td.address_level1, td.address_level2 {
		display: none;
	}
}