:root {
    --swiper-navigation-size: 30px;
	--swiper-theme-color: var(--color-red);
	--swiper-pagination-color: var(--color-red);
}
/* CTE */
#ce_lmf_contacts {
	width: 100%;
	margin: 0 auto;
	position: relative;
}

/* FILTER */
.ce_lmf_cars_filter,
.ce_lmf_buildings_filter {
	text-align: left;
	margin: 0 0 3rem;
	position: relative;
}
select.filter_select {
	/* styling */
	background-color: white;
	color: var(--color-black);
	border: thin solid var(--color-gray-dark);
	border-radius: 4px;
	display: inline-block;
	font: inherit;
	line-height: 1.5em;
	padding: 0.5em 3.5em 0.5em 1em;
	width: 100%;
	/* reset */
	margin-bottom: 20px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
}

select.filter_select {
	background-image:
	  linear-gradient(45deg, transparent 50%, gray 50%),
	  linear-gradient(135deg, gray 50%, transparent 50%),
	  linear-gradient(to right, #ccc, #ccc);
	background-position:
	  calc(100% - 20px) calc(1em + 2px),
	  calc(100% - 15px) calc(1em + 2px),
	  calc(100% - 2.5em) 0.5em;
	background-size:
	  5px 5px,
	  5px 5px,
	  1px 1.5em;
	background-repeat: no-repeat;
}
select.filter_select:focus {
	background-image:
	  linear-gradient(45deg, var(--color-red) 50%, transparent 50%),
	  linear-gradient(135deg, transparent 50%, var(--color-red) 50%),
	  linear-gradient(to right, #ccc, #ccc);
	background-position:
	  calc(100% - 15px) 1em,
	  calc(100% - 20px) 1em,
	  calc(100% - 2.5em) 0.5em;
	background-size:
	  5px 5px,
	  5px 5px,
	  1px 1.5em;
	background-repeat: no-repeat;
	border-color: var(--color-red);
	outline: 0;
}

/* CARS-BUILDINGS-BLOCK */
.modal-open {
    overflow: hidden;
    width: 100%;
}
.hidden {
    display: none !important;
}
.lmf-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #fff;
	width: 100%;
	max-height: 100%;
	text-align: left;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	z-index: 1002;
	overflow-x: hidden;
}
.lmf-popup_wrapper {
	display: grid;
	gap: 2rem;
}
.car-description,
.building-description {
	padding: 0 1rem;
}

/* SWIPER */
.swiper {
	position: relative;
	overflow: hidden;
	z-index: 2;
}
.swiper img {
	width: 100%;
    height: 100%;
	object-fit: cover;
}
.ce_lmf_cars_group,
.ce_lmf_buildings_group {
	display: grid;
	gap: 20px;
	margin-bottom: 20px;
	grid-template-columns: repeat(1, 1fr);
}
.ce_lmf_car,
.ce_lmf_building {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	transition: 0.3s ease-in
}
.ce_lmf_car:focus-visible,
.ce_lmf_building:focus-visible {
	cursor: pointer;
	border: 2px solid var(--color-red);
	transition: 0.3s ease-in;
}

/* CARS CARD HOVER */
.ce_lmf_car:hover .ce_lmf_car_title,
.ce_lmf_building:hover .ce_lmf_building_title {
	background-color: var(--color-red);
	box-shadow: inset 0 0 0 1px var(--color-red);
}
.ce_lmf_car:focus-visible .ce_lmf_car_title, 
.ce_lmf_building:focus-visible .ce_lmf_building_title {
	background-color: var(--color-red);
	box-shadow: inset 0 0 0 1px var(--color-red);
}
.ce_lmf_car:hover,
.ce_lmf_building:hover {
	cursor: pointer;
}
.ce_lmf_car:hover .ce_lmf_car_title p,
.ce_lmf_building:hover .ce_lmf_building_title p {
	color: var(--color-white);
	transition: ease-in 0.2s;
}
.ce_lmf_car:focus-visible .ce_lmf_car_title p, 
.ce_lmf_building:focus-visible .ce_lmf_building_title p {
	color: var(--color-white);
	transition: ease-in 0.2s;
}
.ce_lmf_car.hidden,
.ce_lmf_building.hidden {
	transition: ease-in-out 0.3s;
	opacity: 0;
	visibility: hidden;
	display: none;
}
.ce_lmf_car.show,
.ce_lmf_building.show {
	transition: ease-in-out 0.3s;
	opacity: 1;
	visibility: visible;
}
#ce_lmf_cars,
#ce_lmf_buildings {
	transition: ease-in-out 0.3s;
	text-align: center;
}
.ce_lmf_cars,
#ce_lmf_buildings {
	text-align: left;
}
#ce_lmf_cars .ce_car_photo,
#ce_lmf_buildings .ce_building_photo {
	position: relative;
    width: 100%;
    padding-bottom: 80%;
}
#ce_lmf_cars .ce_car_photo img,
#ce_lmf_buildings .ce_building_photo img {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ce_lmf_car_title,
.ce_lmf_building_title {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	transition: ease-in 0.2s;
	background-color: var(--color-white);
	box-shadow: inset 0 0 0 1px var(--color-gray-dark);
}
.ce_lmf_car_title p,
.ce_lmf_building_title p {
	font-weight: 800;
	color: var(--color-red);
	padding: 10px 10px 10px 20px;
	margin: 0;
	text-align: left;
}
.building-header {
	background-color: var(--color-red);
	border-radius: 1rem;
}
.lmf-popup h4 {
	text-align: left;
}
.lmf-popup .popup-close {
	position: fixed;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgb(234 234 234 / 72%);
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
}
.lmf-popup .popup-close::before,
.lmf-popup .popup-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 2px;
    background-color: var(--color-red);
    transform-origin: center;
}
.lmf-popup .popup-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.lmf-popup .popup-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#show-more-cars,
#show-more-buildings {
	text-align: center;
	padding: 10px 20px;
	font-size: 2rem;
	background-color: var(--color-red);
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 4px;
	border: 1px solid var(--color-gray-light);
	transition: background-color 0.3s ease;
	margin: 5rem 2rem 0 !important;
}
#show-more-cars:hover,
#show-more-buildings:hover {
	background-color: var(--color-gray-light);
	border: 1px solid var(--color-black);
	color: var(--color-black);
}
#show-more-cars:focus,
#show-more-buildings:hover {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 0, 4, 0.3);
	background-color: var(--color-gray-light);
	color: var(--color-red);
}
@media screen and (min-width: 400px) {
	.ce_lmf_cars_group,
	.ce_lmf_buildings_group {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}
@media screen and (min-width: 600px) {

}
@media screen and (min-width: 768px) {
	.ce_lmf_contacts_items {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: var(--gap);
	}
	.ce_lmf_contacts_filter {
		grid-template-columns: 1fr;
	}
	.ce_lmf_contacts_filter_department {
		text-align: left;
	}
	.ce_lmf_contacts_filter_department span {
		display: none;
	}
	.ce_lmf_contacts_filter .ce_lmf_contacts_filter_department .ce_lmf_contacts_filter_select {
		width: 40rem;
	}
	.ce_lmf_cars_group,
	.ce_lmf_buildings_group {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
	select.filter_select {
		width: 350px;
	}
}
@media screen and (min-width: 1024px) {
	.lmf-popup {
		max-width: 80vw;
		max-height: 90vh;
	}
	.lmf-popup_wrapper {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		padding: 2rem;
	}
	/* swiper */
	.swiper {
		position: sticky;
		top: 2rem;
		max-height: calc(80vw / 2.5);
		height: 100%;
	}
	#ce_lmf_cars:has(#show-more-cars:not(.show)):not(.ce_lmf_cars_select) .ce_lmf_cars_wrapper:before {
		content: '';
		position: absolute;
        bottom: 4rem;
		left: 50%; 
		transform: translateX(-50%);
		z-index: -1;
		width: 99vw;
        height: calc(100% - 450px);
        min-height: 50%;
		background-color: var(--color-gray-light);
	}
    #ce_lmf_cars:has(#show-more-cars.show) .ce_lmf_cars_wrapper:before {
		content: '';
		position: absolute;
        bottom: 2rem;
		left: 50%; 
		transform: translateX(-50%);
		z-index: -1;
		width: 99vw;
        height: calc(100% - 550px);
		background-color: var(--color-gray-light);
	}
    #ce_lmf_cars:has(#show-more-cars:not(.show)):has(.ce_lmf_cars_select) .ce_lmf_cars_wrapper:before {
		content: '';
		position: absolute;
        bottom: 2rem;
		left: 50%; 
		transform: translateX(-50%);
		z-index: -1;
		width: 100vw;
        height: calc(100% - 550px);
		background-color: var(--color-gray-light);
	}
    .ce_lmf_buildings_wrapper:before {
		content: '';
		position: absolute;
        bottom: 4rem;
		left: 50%; 
		transform: translateX(-50%);
		width: 99vw;
        height: calc(100% - 450px);
		min-height: 40%;
		background-color: var(--color-gray-light);
		z-index: -1;
	}
    .ce_lmf_contacts_items:before {
		content: '';
		position: absolute;
		bottom: 0;
		left: 50%; 
		transform: translateX(-50%);
        max-width: var(--max-width-wide-content); 
		z-index: -1;
		width: 100%;
		top: 60px;
		background-color: var(--color-gray-light);
	}
	.building-header {
		position: relative;
	}
	.ce_lmf_contacts_filter_department span {
		display: inline;
	}
	.ce_lmf_contacts_items {
		grid-template-columns: repeat(3, 1fr);
	}
	.ce_lmf_cars_group,
	.ce_lmf_buildings_group {
		grid-template-columns: repeat(4, 1fr);
		gap: 30px;
	}
	#ce_lmf_cars .ce_car_photo,
	#ce_lmf_buildings .ce_car_photo {
		max-height: 230px;
	}
	#ce_lmf_cars .ce_car_photo img,
	#ce_lmf_buildings .ce_car_photo img {
		height: 100%;
	}
}
@media screen and (min-width: 1400px) {
	.ce_lmf_contacts_items {
		grid-template-columns: repeat(4, 1fr);
	}
	.ce_lmf_contacts_items {
		position: relative;
	}
}
@media screen and (min-width: 1600px) {
	.lmf-popup {
		max-width: 60vw;
	}
	.swiper {
		max-height: calc(60vw / 2.5);
	}
}

/* BLACK */
body.black .ce_lmf_contacts_filter.sticky {
    background-color: var(--color-black);
}
body.black .ce_lmf_contacts_header {
	background-color: var(--color-white);
	border-left: 0.5rem solid var(--color-white);
	color: var(--color-black);
}
body.black .ce_lmf_contacts_employee {
	background-color: var(--color-black);
}
body.black .ui-autocomplete {
	color: var(--color-black);
}

/* WHITE */
body.white .ce_lmf_contacts_header {
	background-color: var(--color-black);
	border-left: 0.5rem solid var(--color-black);
	color: var(--color-white);
}