/* Search results
* /a/css/search/search_results/screen.css
*/
body{
	font-family: 'Roboto',sans-serif !important;
}

h1{
	padding-bottom: 0;
	border-bottom: 0;
}

p.num_search_results{
	border-bottom: 1px dotted #f1605b;
	text-align: right;
}

a.image-container img {
    width: 100%;
    height: auto;
}

div.search_results_container {
    width: auto;
    display: inline-grid;
    grid-template-columns: repeat(2,auto);
	margin-bottom: 28.6px;
	cursor: pointer;
}

	div.search_results_container div.search_results_icon{
		display: inline-grid;
		justify-items: center;
		width: 135px;
		padding: 13px 0 10.65px;
		line-height: 22.5px;
		border-bottom: 2px solid rgba(255,255,255,0);
		color: black;
		text-transform: uppercase;
	}

		div.search_results_container div.search_results_icon:hover{
			color: #f1605b;
		}

		div.search_results_container div.search_results_icon:active{
			color: hsla(2, 84%, 65%, 0.753);
		}

		div.search_results_container div.search_results_icon svg.icon_map{
			padding:4px;
		}

div#search-results {
    display: grid;
    grid-template-columns: repeat(3,auto);
	column-gap: 32px;
	row-gap: 40px;
}

	div#search-results div.image_container{
		padding-bottom: 22px;
		border-bottom: 2px dotted #f1615b;
		display: grid;
		grid-template-rows: 1fr auto auto;
	}

		div#search-results div.image_container h4{
			color: #f1615b;
			font-weight: normal;
			margin: 0 0 1em 0;
		}

		div#search-results div.image_container p{
			color: #585858;
			margin: 0 0 12px 0;
			font-size: 16.5px;
		}

	div#search-results div.buttons {
		position: static;
		bottom: none;
	}

div.map_image_container{
	/* padding-bottom: 22px; */
	/* border-bottom: 2px dotted #f1615b; */
	display: grid;
	grid-template-rows: auto auto 28px;
	width: auto;
}

	div.map_image_container img{
		width: 100%;
		height: auto;
	}

	div.map_image_container h4{
		color: #f1615b;
		font-weight: normal;
		margin: 0 0 1em 0;
		font-family: 'Roboto',sans-serif !important;;
	}

	div.map_image_container p{
		color: #585858;
		margin: 0 0 12px 0;
		font-size: 11px;
	}

	div.map_image_container div.buttons {
		display: grid;
		grid-template-columns: repeat(2,1fr);
		position: relative;
		justify-items: center;
		top:0.3px;
		align-items: baseline;
	}

		div.map_image_container div.buttons a{
			min-width: 64px;
			width: 100%;
			height: 28px;
			line-height: 28px;
			cursor: pointer;
		}

.map_image_description_container {
	padding: 20px 14px;
	}

#map {
	height: calc(100vw * 2);
	max-height: 700px;
	min-height: 470px;
	min-width: 302px;
	width: 100%;
}

.buttons.clearfix {
    display: grid;
	grid-template-areas: 
					"mapLink mapLink"
					"buy more";
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: 70px auto;
	align-items: center;
	justify-content: left;
	grid-column-gap: 20px;
	/* grid-row-gap: 2px; */
}

	.buttons.clearfix a.mapLinkButton{

		width: auto;
		grid-area: mapLink;
		color: #f1615b !important;
		justify-self: center;
		cursor: pointer;
		border: 2px dotted rgba(255,255,255,0);
	}

		.buttons.clearfix a.mapLinkButton:hover{
			/* border: 2px dotted #c74141; */
			color: #963636 !important;
		}

		.buttons.clearfix a.mapLinkButton svg{
			width: 30px;
			padding-right: 10px;
			vertical-align: bottom;
			fill: #f1615b !important;
		}

			.buttons.clearfix a.mapLinkButton:hover > svg{
				fill: #963636 !important;
			}

		.buttons.clearfix a.mapLinkButton:active{
			color: #f1615b !important;
		}

			.buttons.clearfix a.mapLinkButton:active > svg{
				fill: #f1615b !important;
			}

div.map_image_container div.buttons.clearfix {
	grid-column-gap: 0;
	grid-template-rows: 0;
}

.map_image_container_padding {
	padding: 0;
}

div.buttons a, div.buttons a {
	margin-right: 0;
	width: auto;
}

/* Leaflet map styling */
.corals-marker-icon {
	background: transparent;
	border: 0;
}

.corals-marker-icon img {
	position: absolute;
	left: 0;
	top: 0;
	max-width: none;
	transform: translate(-50%, -100%);
}

.corals-map-popup .leaflet-popup-content-wrapper {
	border-radius: 0;
	padding: 0;
}

.corals-map-popup .leaflet-popup-content {
	margin: 0;
	width: 200px !important;
}

.corals-map-popup .leaflet-popup-close-button {
	top: 5px !important;
	right: 5px !important;
	width: 20px !important;
	height: 20px !important;
	line-height: 18px !important;
	padding: 0 !important;
	background: #ffffff !important;
	border-radius: 100%;
	color: #585858 !important;
	font-size: 18px !important;
	text-align: center;
	opacity: 0.85;
}

.corals-map-popup .leaflet-popup-tip {
	background: #ffffff;
}

.leaflet-container {
	font-family: 'Roboto', sans-serif;
}

@media only screen and (max-width: 1224px){
	div#search-results {
		grid-template-columns: repeat(2,auto);
	}
}

@media only screen and (max-width: 950px){
	div#search-results {
		grid-template-columns: auto;
	}

		div#search-results div.image_container{
			grid-template-rows: auto auto auto;
		}
		
			div#search-results div.image_container img{
				width: 100%;
				height: auto;
			}
}

@media only screen and (max-width: 670px){
	#search-results-wrapper {
		display: grid;
		justify-items: center;
	}
	.buttons.clearfix {
		justify-content: space-around;
	}
		.buttons.clearfix a.mapLinkButton{
			justify-self: center;
		}
}

@media only screen and (max-width: 340px){
	div.map_image_container{
		padding-left: 0;
	}
}