.box-tour {
	transition: .7s;
	will-change: transform;
}

.box-tour:hover {
	transform: scale(1.1);
	box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
	z-index: 99;
}

.box-tour .elementor-image-box-img {
	width: 100% !important;
	height: 0;
	padding-bottom: 70%;
	position: relative;
}

.box-tour .elementor-image-box-img:after {
    content: '';
    position: absolute;
    width: 30%;
    height: 40%;
    left: 0;
    top: 0;
    background: url(/wp-content/themes/tripster/assets/badge_topluxurytravel.png);
	background-size: contain;
	background-position: top left;
	background-repeat: no-repeat;
    display: block;
    z-index: 3;
}

.box-tour .elementor-image-box-img:before {
	content: '';
	background: #002dff;
	opacity: 0.2;
	position: absolute;
	top: 0; left: 0;
	width: 100%; 
	height: 100%;
	z-index: 2;
	transition: .3s;
}

.box-tour:hover .elementor-image-box-img:before {
	opacity: 0;
}

.box-tour .elementor-image-box-img img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	z-index: 1;
	filter: brightness(0.9);
	transition: .3s;
}

.box-tour:hover .elementor-image-box-img img {
	filter: brightness(0.9);
}

.box-tour .elementor-image-box-content {
	color: #fff;
	font-size: 1.1em;
	font-weight: bold;
}

.box-tour .elementor-image-box-title {
	color: #FFF !important;
	font-size: 2.3em;
	max-width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	margin: 0;
	z-index: 3;
	padding: 0 20px;
}

.box-tour .elementor-image-box-description {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 10px;
	z-index: 20;
	white-space: pre-line;
	background: #f7aa00;
	line-height: 1.2;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 1px;
	pointer-events: none;
}

.box-tour .elementor-image-box-description font {
	white-space: pre-line;
	padding: 1px;
}

.mobile-link font,
.box-tour .elementor-image-box-title font,
.elementor-button-wrapper font,
.jet-menu-title font {
	text-transform: capitalize;
}

.box-tour a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
	padding: 0 2em;
	
}


#google_language_translator {
	display: none;
}

#flags {
	display: block;
	width: 56px;
	min-height: 24px;
	margin-left: 50%;
	position: relative;
	overflow: initial;
	transition: .3s;
}

#flags:after {
	content: "\f107";
	position: absolute;
	top: 50%;
	right: 4px;
	font-family: "Font Awesome 5 Free", "FontAwesome";
	color: #333;
	font-size: 20px;
	display: block;
	transform: translateY(-50%);
	font-weight: bold;
	transition: .3s;
}

#flags ul.ui-sortable {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 0;
	left: 0;
	height: 24px;
	overflow: hidden;
	padding: 1px 5px;
	margin: 0;
}

#flags.open ul.ui-sortable /*,
#flags ul.ui-sortable:hover*/ {
	height: auto;
}

#flags.open ul.ui-sortable /*,
#flags ul.ui-sortable:hover*/ {
	background: #dfdfdf;
}

#flags.open:after /*,
#flags:hover:after*/ {
	color: #fba909;
	transform: translateY(-50%) rotate(-180deg);
	top: calc(50%);
}

#flags li {
	order: 1;
}
html[lang='pt'] #flags #Portuguese {
	order: 0;
}
html[lang='en'] #flags #English {
	order: 0;
}			
html[lang='es'] #flags #Spanish {
	order: 0;
}
		
html[lang='fr'] #flags #French {
	order: 0;
}
html[lang='it'] #flags #Italian {
	order: 0;
}
html[lang='zh-CN'] #flags li[id^='Chinese'] {
	order: 0;
}

@media all and (max-width: 768px) and (min-width: 0) {
	.box-tour .elementor-image-box-title { 
	    font-size: 1.4em;   
	}
	
	.box-tour .elementor-image-box-img {
	    padding-bottom: 90%;   
	}
	
	#flags {
		margin-left: 10px;
		margin-right: auto;
	}
	
	#masthead .jet-mobile-menu__instance {
		margin-right: 10px;
	}
}