/*Theme Name: Avada Child Theme
Description: Child theme for Avada
Author: GSSI
Author URI: http://graphicallyspeaking.ca
Template: Avada
*/

#locations-map {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

#the-map {
	position: relative;
	max-width: 60%;
	flex-basis: 60%;
	/* background-image: url(/wp-content/uploads/2020/11/map.jpg); */
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}

.map-inner {
	position: relative;
}

#the-map img {
	display: block;
	margin: 0;
	width: 100%;
	max-width: 100%;
	height: auto;
}

#the-locations {
	display: flex;
	flex-wrap: wrap;
	max-width: 40%;
	flex-basis: 40%;
	padding: 30px;
	background-color: #e7ebee;
}

#the-locations:hover .locations-item {
	opacity: 0.35;
}

.locations-item {
	max-width: 50%;
	flex-basis: 50%;
	margin: 0 0 1rem;
	transition: all 300ms ease;
}

.locations-item:hover {
	opacity: 1 !important;
	cursor: pointer;
}

#the-locations .locations-item:nth-child(odd) {
	padding-right: 15px;
}

#the-locations .locations-item:nth-child(even) {
	padding-left: 15px;
}

.locations-item-body {
	padding-left: 20px;
}

.locations-item-body > p {
	position: relative;
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: #222;
}

.locations-item-body > p span {
	display: inline-block;
	position: absolute;
	top: 50%;
	left: -20px;
	margin-top: -5px;
	width: 10px;
	height: 10px;
	background-color: #222;
	border-radius: 100px;
}

.locations-item-description p {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: #5e5e5e;
	line-height: 1.3;
}

.locations-item-description p a {
	text-decoration: underline;
}

.locations-item-img {
	margin-bottom: 10px;
}

.locations-item-img img {
	width: auto;
	max-height: 50px;
}

.pin-group {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.pin-item {
	position: absolute;
	width: 10px;
	height: 10px;
	background-color: #222;
	border-radius: 100px;
}

@media only screen and (max-width: 1200px) {
	
	.locations-item-body > p {
		font-size: 13px;
	}
	
	.locations-item-description p {
		font-size: 12px;
	}
}

@media only screen and (max-width: 950px) {
	
	#the-map,
	#the-locations {
		max-width: 100%;
		flex-basis: 100%
	}
}

@media only screen and (max-width: 500px) {
	
	.locations-item {
		padding: 0 !important;
		max-width: 100%;
		flex-basis: 100%
	}
}

/* NEW MAP FEATURE */

.skyalyne-maps .fusion-imageframe:not(.map-all) {
	display: none;
	position: relative;
	top: -2px;
}

.location-item {
	transition: all 300ms ease;
}

.map-locations:hover .location-item {
	opacity: 0.5;
}

.location-item:hover {
	opacity: 1 !important;
	cursor: pointer;
}

/* EVENTS CALENDAR FIXES */

.tribe-common .tribe-common-c-btn-icon--caret-right .tribe-common-c-btn-icon__icon-svg,
.tribe-common .tribe-common-c-btn-icon--caret-left .tribe-common-c-btn-icon__icon-svg,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-top-bar__datepicker-button-icon-svg,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-nav__next-icon-svg,
.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-nav__prev-icon-svg,
.tribe-events .tribe-events-c-ical__link-icon-svg {
    display: none !important;
}

@media only screen and (max-width: 767px) {
	
	.fusion-body .fusion-wrapper #main .tribe-events .tribe-events-c-top-bar__datepicker .tribe-events-c-top-bar__datepicker-button:after,
	.fusion-body .fusion-wrapper #main .tribe-events .tribe-events-c-nav__next:after,
	.fusion-body .fusion-wrapper #main .tribe-events .tribe-events-c-nav__prev:before,
	.fusion-body #main .tribe-events .tribe-events-c-view-selector__button .tribe-events-c-view-selector__button-icon:after {
		content: normal !important;
	}
	
	span.tribe-events-c-top-bar__datepicker-mobile {
    	font-size: 20px;
	}
	
	.tribe-events .tribe-events-l-container {
		padding: 0 !important;
	}
	
	span.tribe-events-c-nav__prev-label,
	span.tribe-events-c-nav__next-label,
	a.tribe-events-c-nav__today.tribe-common-b2 {
		font-size: 12px !important;
	}
	
	span.tribe-events-c-view-selector__button-icon {
    	min-height: 25px;
    	min-width: 25px;
	}
	
	.tribe-events .tribe-events-c-ical {
		text-align: center !important;
	}
}

/* SKYAL-41 */

.fusion-tb-header .fusion-builder-row-1 .fusion-menu-element-wrapper {
	display: flex;
	width: auto;
	margin-left: 20px;
}

.fusion-tb-header .fusion-menu-element-wrapper .fusion-menu-element-list > li:not(.fusion-menu-item-button) > a {
	color: #FFF !important;
}

.fusion-tb-header .fusion-menu-element-wrapper .fusion-menu-element-list > li:not(.fusion-menu-item-button) > a:hover {
	color: #FFF !important;
	text-decoration: underline;
}

ul#menu-lang-switcher {
	min-height: 1px !important;
	align-items: center;
}

ul#menu-lang-switcher > li {
	margin:0 5px;
}