/**
 * Custom Top Bar Styles
 * Fully responsive top bar with contact info and language selector
 */

/* Base Styles */
#Custom_top_bar {
	background-color: #2c2c2c;
	color: #ffffff;
	font-size: 13px;
	line-height: 1.4;
	padding: 8px 0;
	border-bottom: 1px solid #3a3a3a;
	clear: both;
}

#Custom_top_bar .container {
	position: relative;
}

#Custom_top_bar .column.one {
	width: 100%;
}

.custom-top-bar-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

/* Left Side - Contact Info */
.custom-top-bar-left {
	flex: 1;
	min-width: 0;
}

.contact-info {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
}

.contact-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.contact-item i {
	font-size: 14px;
	opacity: 0.8;
}

.contact-item a {
	color: #ffffff;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.contact-item a:hover {
	opacity: 0.7;
}

/* Right Side - Language Selector */
.custom-top-bar-right {
	flex-shrink: 0;
}

.language-selector {
	display: flex;
	align-items: center;
}

/* GTranslate Styling */
.language-selector .gt_switcher {
	font-size: 13px;
}

.language-selector .gt_switcher a {
	color: #ffffff !important;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 3px;
	transition: background-color 0.3s ease;
	display: inline-block;
}

.language-selector .gt_switcher a:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* GTranslate dropdown styling */
.language-selector .gt_switcher .gt_lang_code {
	color: #ffffff !important;
}

/* GTranslate widget container */
.language-selector div[id*="gtranslate"],
.language-selector .gt_wrapper {
	display: inline-block;
}

.language-selector .gt_selector {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	padding: 4px 10px;
	border-radius: 3px;
	cursor: pointer;
}

.language-selector .gt_selector:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Ensure GTranslate iframe/widget is visible */
.language-selector iframe,
.language-selector .gtranslate-wrapper {
	display: inline-block !important;
	visibility: visible !important;
}

/* WPML language switcher styling (fallback) */
.language-selector .wpml-ls-statics-shortcode_actions {
	background: rgba(255, 255, 255, 0.1);
	padding: 4px 8px;
	border-radius: 3px;
}

.language-selector .wpml-ls-item a {
	color: #ffffff !important;
}

.language-selector .wpml-ls-item a:hover {
	opacity: 0.8;
}

/* Mobile Devices - Hide top bar completely and show in menu instead */
@media only screen and (max-width: 767px) {
	#Custom_top_bar {
		display: none;
	}
}

/* GTranslate in Side Slide (Mobile Menu) */
.side-slide-gtranslate {
	padding: 20px;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.1);
	margin-top: 15px;
	clear: both;
}

.side-slide-gtranslate .gt_switcher {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.side-slide-gtranslate .gt_switcher a {
	color: #ffffff !important;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
	display: inline-block;
}

.side-slide-gtranslate .gt_switcher a:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* GTranslate widget in Side Slide */
.side-slide-gtranslate .gt_selector {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	padding: 8px 15px;
	border-radius: 4px;
	display: inline-block;
}

/* Ensure GTranslate is visible in Side Slide */
.side-slide-gtranslate iframe,
.side-slide-gtranslate .gtranslate-wrapper,
.side-slide-gtranslate div[id*="gtranslate"] {
	display: block !important;
	visibility: visible !important;
	margin: 0 auto;
}

/* Tablet Devices (768px - 1024px) */
@media only screen and (max-width: 1024px) {
	.contact-info {
		gap: 15px;
	}

	.contact-item {
		font-size: 12px;
	}

	.contact-item.address {
		display: none;
	}
}

/* Desktop fallback - previously Mobile Devices (max-width: 767px) */
@media only screen and (max-width: 767px) {
	#Custom_top_bar {
		padding: 10px 0;
		font-size: 12px;
	}

	.custom-top-bar-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.custom-top-bar-left {
		width: 100%;
	}

	.contact-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.contact-item {
		font-size: 12px;
		white-space: normal;
	}

	.contact-item.address,
	.contact-item.email {
		display: inline-flex;
	}

	.contact-item.phone {
		display: inline-flex;
	}

	.custom-top-bar-right {
		width: 100%;
		display: flex;
		justify-content: flex-end;
	}

	/* Stack order on mobile - move language to top */
	.custom-top-bar-wrapper {
		display: flex;
		flex-direction: column-reverse;
	}
}

/* Small Mobile Devices (max-width: 480px) */
@media only screen and (max-width: 480px) {
	#Custom_top_bar {
		padding: 8px 0;
	}

	.contact-info {
		gap: 6px;
	}

	.contact-item {
		font-size: 11px;
	}

	.contact-item i {
		font-size: 12px;
	}
}

/* Adjustments for when header is sticky */
#Top_bar.is-sticky + #Wrapper #Custom_top_bar {
	position: relative;
	z-index: 5;
}

/* Ensure proper spacing with main header */
#Custom_top_bar + #Header_wrapper,
#Custom_top_bar + #Top_bar {
	margin-top: 0;
}

/* Print Styles */
@media print {
	#Custom_top_bar {
		display: none;
	}
}
