/* [vhm_footer_bar] — see includes/footer-bar.php */

.vhm-footer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	font-size: 13px;
	line-height: 1.4;
}

.vhm-footer-bar__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vhm-footer-bar__group--right {
	margin-left: auto;
}

.vhm-footer-bar__item {
	display: flex;
	align-items: center;
	margin: 0;
}

.vhm-footer-bar a {
	color: inherit;
	text-decoration: none;
}

.vhm-footer-bar a:hover,
.vhm-footer-bar a:focus-visible {
	text-decoration: underline;
}

/* Site logo + name */
.vhm-footer-bar__logo {
	display: block;
	width: auto;
	height: 22px;
	max-width: 120px;
	object-fit: contain;
}

.vhm-footer-bar__item--site-name {
	font-weight: 600;
}

/* Language switcher: link to the other language, black & white flag + native name */
.vhm-lang-switcher {
	display: flex;
	align-items: center;
	gap: 16px;
}

.vhm-lang {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vhm-lang img {
	display: block;
	width: 22px;
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: 2px;
	filter: grayscale(1);
	opacity: 0.9;
}

.vhm-lang:hover img,
.vhm-lang:focus-visible img {
	opacity: 1;
}

/* Vendégházmester logo right next to "A gépházban: Vendégházmester" */
.vhm-footer-bar__powered {
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0.85;
}

.vhm-footer-bar__powered strong {
	font-weight: 600;
}

.vhm-footer-bar__vhm-logo {
	display: block;
	width: 22px;
	height: 22px;
	/* The logo is black on transparent; show it white on the dark footer. */
	filter: invert(1);
}

/* Help (last item) with icon */
.vhm-footer-bar__help {
	display: flex;
	align-items: center;
	gap: 6px;
}

.vhm-footer-bar__icon {
	display: block;
	flex: none;
	width: 22px;
	height: 22px;
}

/* Small screens: groups stack, both centred */
@media (max-width: 767px) {
	.vhm-footer-bar,
	.vhm-footer-bar__group {
		justify-content: center;
	}

	.vhm-footer-bar__group--right {
		margin-left: 0;
	}
}

/* Back to search button (every page except home): same column and left edge as the page content.
   content-box: 780px of content (like .entry-content) plus the same side padding as .site-main > .hentry */
.vhm-back-to-search {
	box-sizing: content-box;
	max-width: 780px;
	margin: 40px auto;
	padding: 0 10px;
	text-align: left;
}

@media (min-width: 768px) {
	.vhm-back-to-search {
		padding: 0 25px;
	}
}

@media (min-width: 992px) {
	.vhm-back-to-search {
		padding: 0 50px;
	}
}
