/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

/*Add your own styles here:*/

.eco-filter-list {
	display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: space-between;
    flex: 0 0 100%;
}

.acf-filter-form-container {
	position: relative;
	margin-top: 3.8rem;
}

.acf-filter-form-container .loader-container img {
	width: 72px;
	height: 72px;
	margin: 1rem;
}

.acf-filter-form {
	display: flex;
	margin: 1.8rem 0;
}

.acf-filter-form .filter-option {
	flex: 1 0;
	margin-right: 0.8rem;
	position: relative;
}

.acf-filter-form .filter-option label {
	/*position: absolute;*/
	top: -1.8rem;
}

.acf-filter-form button {
	flex: 15% 0 0;
	background-color: #00b4ff;
	border-radius: 0;
	color: white;
	max-height: 44px;
    margin-top: 28px;
}

.eco-filter-list .filter-option {		
    width: 100%;
	margin: 1rem 0;
}

.eco-filter-list .filter-option label{		
    display: none;
}

.eco-filter-list input[type="submit"] {
	background-color: #00b4ff;
	border-radius: 0;
	padding: 0.8em;
	margin: 1rem 0;
	width: 100%;
}

.eco-filter-list select {
	background: #f2f2f2;
	border-radius: 0;
	padding: 0.8em;
	box-shadow: none;
}


/* Display articles */

#my-ajax-filter-search {
	max-width: 1140px;
	position: relative;
    display: flex;
    flex-wrap: wrap;
}

#my-ajax-filter-search form {
	padding: 0.5rem;
}

.my-ajax-filter-search {
	max-width: 1140px;
	position: relative;
    display: flex;
    flex-wrap: wrap;
}

.my-ajax-filter-search form {
	padding: 0.5rem;
}

#ajax_fitler_search_results, #response {
	display: flex;
	align-items: center;
	/*justify-content: space-between;*/
	justify-content: flex-start;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style-type: none;
	flex: 0 0 100%;
}


.loader-container {
	background-color: rgba(255,255,255,0.8);
    z-index: 3;
    width: 100%;
	height: 100%;
    display: flex;
    justify-content: center;
}

.hide {
	display: none;
}


#ajax_fitler_search_results li, .my-ajax-filter-search li {
	flex: 0 0 100%;
	padding: 0;
	/*margin: 0;*/
	margin: 0 5px;
	position: relative;
}

.article-link-position p  {
	color: white;
	opacity: 1;
	margin-bottom: .5rem;
}

#ajax_fitler_search_results .filter-no-results {
	width: 100%;
	min-height: 20rem;
	display: flex;
	align-items: center;
	justify-content:center;
}

.article-container {
	overflow: hidden;
	position: relative;
	z-index: 1;
	margin: 10px 0px;
}


.article-container:before {
	padding-bottom: 100%;
	display: block;
	content: '';
}

.article-container .article-link {
	position: absolute;	
	left: 0;
	right: 0;
	bottom: 0;
	transition-property: background, box-shadow, border, color, opacity, transform;
    transition-duration: 0.3s;
	padding: 0.5rem;
	background: linear-gradient( transparent, rgba(0,0,0,0.4));
	height: 100%;
}

.article-link-position {
	bottom: 0;
	display: table-cell;
	height: 269px;
	width: 269px;
	padding-bottom: 20px;
	vertical-align: bottom;
}

#ajax_fitler_search_results .certificate, #response .certificate {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
    width: 100%;
    max-width: 25%;
    padding: 10px 0;
}

#ajax_fitler_search_results .article-bg, #response .article-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;	
	object-fit: cover;
	height: 100%;
	width: 100%;
}

#ajax_fitler_search_results h2, #response h2 {
	font-weight: 800;
	font-size: 1.3rem;
	color: white;
	padding-top: 0;
}

@media screen and (min-width: 600px) {
	#ajax_fitler_search_results li {
		flex: 0 0 calc(50% - 10px);
	}
	
/* 	.article-container {
		margin: 10px 10px 10px 0;
	} */
	
	#ajax_fitler_search_results .article-bg {
		width: auto;
	}
	
	.eco-filter-list input[type="submit"] {
		width: auto;
		flex: auto;
	}
	
	#ajax_fitler_search_results .certificate, #response .certificate {
		padding: 10px 0 0 0;
	}
}
@media screen and (min-width: 900px) {	
	.eco-filter-list .filter-option {
		flex: 0 0 29%;
		margin-right: 1em;
	}
	.article-link-position p {
		opacity: 0;
	}
	.article-link-position:hover > p {
		opacity: 1;
		transition-duration: 0.3s;
	}
	#ajax_fitler_search_results li, .my-ajax-filter-search li {
		flex: 0 0 calc(33% - 10px);
	}
}
@media screen and (min-width: 1200px) {
	#ajax_fitler_search_results li, .my-ajax-filter-search li {
		flex: 0 0 calc(25% - 10px);
	}
}

/* Grid Lista activitati, LIST ACTIVITIES */
.w-grid.type_grid.layout_759 a:hover, .w-grid.type_grid.layout_5017 a:hover {
	color: #fb9227;
}

/* Grid Lista trasee, LIST TRAILS */
.w-grid.type_grid.layout_849 a:hover, .w-grid.type_grid.layout_5014 a:hover {
	color: #00b4ff;
}
