/*!
Theme Name: MESZ BS5
Theme URI: https://them.es/starter
Author: David Fodor
Author URI: https://fodorur.com
Description: MESZ.hu Wordpress Theme
Version: 1.0.2
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: mesz-bs5
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/assets/dist/main.css" */

/* From http://codex.wordpress.org/CSS */

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

#hero .hero-side-image{
  position: static !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  max-width: 420px !important;
}

/* MOBIL */
@media (max-width: 767.98px){
  #hero .hero-side-image{
    max-width: 50%  !important;
    margin: 0 auto 12px;
    display: block;
  }

  /* opcionális: ha a hero túl alacsony mobilon, legyen automatikus */
  #hero{
    height: auto;
    min-height: 520px; /* ízlés szerint */
  }
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* HEADER magasság */
#headerNav.navbar{
  padding-top: 18px;
  padding-bottom: 18px;
}

/* ha fixen szeretnél egy minimális magasságot */
#headerNav.navbar .container{
  min-height: 84px; /* állítsd ízlés szerint */
  align-items: center;
}

#headerNav{
  background-color: #fff !important;
  background-image: none !important;
  opacity: 1 !important;
}

#headerNav .navbar-brand img{
  height: 80px;
  width: auto;
}

@media (max-width: 767px){
  #headerNav .navbar-brand img{
    height: 60px;
  }
}

/* Bootstrap default hamburger ikon kikapcs (nehogy helyet foglaljon) */
#headerNav .mesz-toggler .navbar-toggler-icon{
  display: none !important;
  background-image: none !important;
}

/* GOMB KERET + MÉRET */
#headerNav .mesz-toggler{
  border: 1px solid rgba(0,0,0,.18);   /* vékony keret */
  border-radius: 0;                     /* ha kell szögletes */
  padding: 10px 14px;
  background: #fff;
  box-shadow: none;
}

/* BELSŐ ELRENDEZÉS */
#headerNav .mesz-toggler__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

/* IKON */
#headerNav .mesz-toggler__icon{
  height: 26px;   /* igazítsd a mintához */
  width: auto;
  display: block;
}

/* FELIRAT */
#headerNav .mesz-toggler__label{
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 600;
  color: #0aa; /* ha a türkiz kell, később pontosítjuk */
}

/* FÓKUSZ állapot (szép, nem rondán kék) */
#headerNav .mesz-toggler:focus{
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(0,0,0,.08);
}

@media (max-width: 767.98px){
  #headerNav .mesz-toggler{ padding: 8px 12px; }
  #headerNav .mesz-toggler__icon{ height: 22px; }
  #headerNav .mesz-toggler__label{ font-size: 11px; }
}

@media (max-width: 767.98px){
  body.home main#main{
    padding-top: 110px !important;
  }
}

@media (max-width: 767.98px){
  main#main{ padding-top: 110px !important; }
  #hero{ height: 70vh; min-height: 520px; }
}

#hero .carousel-item{ position: relative; }

#hero .carousel-item video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

@media (max-width: 767.98px){
  /* a hero legyen magasabb – képernyőarányos */
  #hero{
    height: calc(100vh - 120px);  /* 120px ~ header+padding, igazítsd ha kell */
    min-height: 520px;
    overflow: hidden;
  }

  /* a carousel elemek vegyék fel a hero magasságát */
  #hero #carouselHero,
  #hero #carouselHero .carousel-inner,
  #hero #carouselHero .carousel-item{
    height: 100% !important;
  }
}

/* videó: teljes kitöltés */
#hero #carouselHero .carousel-item video{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#hero #carouselHero .carousel-item.active video{
  /* ha van videó, a háttér úgyis felesleges */
}

#hero{
  background: none !important; /* ez MINDENHOL leveszi */
}

/* HERO: a belső wrapper-ek is töltsék ki a magasságot */
#hero,
#hero > .container-fluid,
#hero > .container-fluid > #carouselHero,
#hero > .container-fluid > #carouselHero > .carousel-inner,
#hero > .container-fluid > #carouselHero > .carousel-inner > .carousel-item{
  height: 100% !important;
}

/* a container overlay is töltse ki */
#hero > .container-fluid > #carouselHero .container.h-100{
  height: 100% !important;
padding-top: 60px;
}

/* videó: full cover */
#hero #carouselHero .carousel-item video{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* fő menüpontok */
#headerNav .navbar-nav .nav-link{
  color: #1f2a44 !important;   /* ide a kívánt szín */
}

/* hover */
#headerNav .navbar-nav .nav-link:hover{
  color: #00a7a0 !important;
}

#headerNav .navbar-nav .nav-link.active,
#headerNav .navbar-nav .current-menu-item > .nav-link{
  color: #e63946 !important;
}

#headerNav .dropdown-menu .dropdown-item{
  color: #1f2a44;
}

#headerNav .dropdown-menu .dropdown-item:hover{
  color: #00a7a0;
  background: transparent;
}

@media (max-width: 767.98px){
  #headerNav .navbar-collapse .nav-link{
    color: #1f2a44 !important;
  }
}

/* TOPBAR */
.mesz-topbar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1050;
	background: #0aa;
	border-bottom: 0;
}

.mesz-topbar__inner {
	min-height: 46px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mesz-topbar__left,
.mesz-topbar__right {
	display: flex;
	align-items: center;
}

.mesz-socials {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mesz-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	opacity: 1;
}

.mesz-socials img {
	display: block;
	max-width: 16px;
	max-height: 16px;
	width: auto;
	height: auto;
}

/* SEARCH */
.mesz-topbar-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.mesz-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255,255,255,0.45);
	background: transparent;
	cursor: pointer;
}

.mesz-search-toggle img {
	width: 15px;
	height: 15px;
	display: block;
	filter: brightness(0) invert(1);
}

.mesz-topbar-search-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: all .2s ease;
	pointer-events: none;
}

.mesz-topbar-search-wrap.is-open .mesz-topbar-search-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.mesz-topbar-search-panel form {
	margin: 0;
}

.mesz-topbar-search__input {
	height: 38px;
	min-width: 220px;
	border: 1px solid rgba(0,0,0,0.12);
	padding: 0 12px;
	font-size: 14px;
	background: #fff;
	outline: none;
}

/* MAIN NAVBAR */
#headerNav {
	position: relative;
	top: 46px;
	width: 100%;
}

.mesz-desktop-extra-toggle-wrap {
	margin-left: 14px;
}

.mesz-desktop-extra-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(0,0,0,0.12);
	background: #fff;
	cursor: pointer;
}

.mesz-desktop-extra-toggle img {
	max-width: 22px;
	height: auto;
	display: block;
}

.mesz-topbar-extra-menu {
	background: #fff;
	border-top: 1px solid rgba(0,0,0,0.06);
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mesz-topbar-extra-menu__list {
	list-style: none;
	margin: 0;
	padding: 14px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.mesz-topbar-extra-menu__list li {
	margin: 0;
	padding: 0;
}

.mesz-topbar-extra-menu__list a {
	text-decoration: none;
	color: #1c2453;
	font-weight: 600;
	font-size: 14px;
}

/* MOBILE BUTTONS */
.mesz-mobile-actions {
	gap: 8px;
}

.mesz-mobile-square-btn {
	display: inline-flex;
	align-items: stretch;
	justify-content: center;
	width: 92px;
	height: 54px;
	padding: 0;
	border: 1px solid rgba(0,0,0,0.12);
	background: #fff;
	text-decoration: none;
	color: #1c2453;
	flex: 0 0 auto;
}

.mesz-mobile-square-btn__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	height: 100%;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
}

.mesz-mobile-square-btn img,
.mesz-toggler__icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	display: block;
}

.mesz-mobile-competition span,
.mesz-toggler span {
	white-space: nowrap;
}

/* responsive */
@media (max-width: 767.98px) {
	.mesz-topbar__inner {
		min-height: 48px;
	}

	#headerNav {
		top: 48px;
	}

	.mesz-socials {
		gap: 8px;
	}

	.mesz-socials img {
		max-width: 14px;
		max-height: 14px;
	}

	.mesz-topbar-search__input {
		min-width: 170px;
	}

	.navbar-brand img {
		max-width: 150px;
		height: auto;
	}
}

.mesz-topbar-extra-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border-top: 1px solid rgba(0,0,0,0.08);
	border-bottom: 1px solid rgba(0,0,0,0.08);
	z-index: 2000;
}

.mesz-topbar-extra-menu.show {
	display: block;
}

.mesz-topbar-extra-menu .container {
	padding-top: 18px;
	padding-bottom: 18px;
}

.mesz-topbar-extra-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.mesz-topbar-extra-menu__list li {
	margin: 0;
}

.mesz-topbar-extra-menu__list a {
	text-decoration: none;
	color: #1c2453;
	font-weight: 600;
	font-size: 14px;
}

@media (max-width: 767.98px) {
	.mesz-topbar-extra-menu {
		display: none !important;
	}
}

.mesz-desktop-extra-toggle img {
	width: 26px;
	height: auto;
}

/* ===== HEADER FINAL OVERRIDES ===== */

.mesz-topbar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1100;
	background: #0aa;
	border-bottom: 0;
}

.mesz-topbar__inner {
	min-height: 46px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mesz-topbar__left,
.mesz-topbar__right {
	display: flex;
	align-items: center;
}

.mesz-socials {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mesz-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	text-decoration: none;
}

.mesz-socials img {
	display: block;
	max-width: 16px;
	max-height: 16px;
	width: auto;
	height: auto;
}

.mesz-topbar-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.mesz-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255,255,255,0.45);
	background: transparent;
	cursor: pointer;
}

.mesz-search-toggle img {
	width: 15px;
	height: 15px;
	display: block;
	filter: brightness(0) invert(1);
}

.mesz-topbar-search-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: all .2s ease;
	pointer-events: none;
	z-index: 1200;
}

.mesz-topbar-search-wrap.is-open .mesz-topbar-search-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.mesz-topbar-search__input {
	height: 38px;
	min-width: 220px;
	border: 1px solid rgba(0,0,0,0.12);
	padding: 0 12px;
	font-size: 14px;
	background: #fff;
	outline: none;
}

#headerNav {
	position: absolute !important;
	top: 46px;
	left: 0;
	width: 100%;
	background-color: #fff !important;
	background-image: none !important;
	opacity: 1 !important;
	z-index: 1090;
}

#headerNav .container.mesz-header-main-row {
	min-height: 84px;
	align-items: center;
}

.mesz-desktop-extra-toggle-wrap {
	margin-left: 14px;
	flex: 0 0 auto;
}

.mesz-desktop-extra-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(0,0,0,0.12);
	background: #fff;
	cursor: pointer;
}

.mesz-desktop-extra-toggle img {
	width: 26px;
	height: auto;
	display: block;
}

.mesz-topbar-extra-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border-top: 1px solid rgba(0,0,0,0.08);
	border-bottom: 1px solid rgba(0,0,0,0.08);
	z-index: 2000;
}

.mesz-topbar-extra-menu.show {
	display: block;
}

.mesz-topbar-extra-menu .container {
	padding-top: 25px;
	padding-bottom: 18px;
}

.mesz-topbar-extra-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.mesz-topbar-extra-menu__list li {
	margin: 0;
	padding: 0;
}

.mesz-topbar-extra-menu__list a {
	text-decoration: none;
	color: #1c2453;
	font-weight: 600;
	font-size: 14px;
}

.mesz-mobile-actions {
	gap: 8px;
}

.mesz-mobile-square-btn,
.mesz-mobile-competition,
#headerNav .mesz-toggler {
	display: inline-flex;
	align-items: stretch;
	justify-content: center;
	width: 92px;
	height: 54px;
	padding: 0;
	border: 1px solid rgba(0,0,0,0.12);
	border-radius: 0;
	background: #fff;
	text-decoration: none;
	color: #1c2453;
	flex: 0 0 auto;
	box-shadow: none;
}

.mesz-mobile-square-btn__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	height: 100%;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
}

.mesz-mobile-square-btn img,
.mesz-toggler__icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	display: block;
}

#headerNav .mesz-toggler .navbar-toggler-icon {
	display: none !important;
	background-image: none !important;
}

#headerNav .mesz-toggler__label,
.mesz-mobile-square-btn__inner span:last-child {
	font-size: 11px;
	letter-spacing: .03em;
	font-weight: 700;
	color: #1c2453;
}

@media (min-width: 768px) {
	#navbarHeader {
		flex: 1 1 auto;
	}

	#navbarHeader .navbar-nav {
		align-items: center;
	}

	.mesz-mobile-actions {
		display: none !important;
	}
}

@media (max-width: 767.98px) {
	.mesz-topbar__inner {
		min-height: 48px;
	}

	#headerNav {
		top: 48px;
	}

	.mesz-socials {
		gap: 8px;
	}

	.mesz-socials img {
		max-width: 14px;
		max-height: 14px;
	}

	.mesz-topbar-search__input {
		min-width: 170px;
	}

	.navbar-brand img {
		max-width: 150px;
		height: auto;
	}

	.mesz-topbar-extra-menu {
		display: none !important;
	}
}

/* SEARCH PANEL – slide left */

.mesz-topbar-search-panel {
	position: absolute;
	top: 50%;
	right: 42px;          /* ikon bal oldalán jelenjen meg */
	transform: translateY(-50%) translateX(10px);
	opacity: 0;
	visibility: hidden;
	transition: all .25s ease;
	pointer-events: none;
	z-index: 1200;
}

.mesz-topbar-search-wrap.is-open .mesz-topbar-search-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
	pointer-events: auto;
}

.mesz-topbar-search-panel form {
	margin: 0;
}

.mesz-topbar-search__input {
	height: 36px;
	width: 180px;
	border: 1px solid rgba(0,0,0,0.15);
	padding: 0 10px;
	font-size: 14px;
	background: #fff;
	outline: none;
}

@media (max-width: 767px){

	.mesz-topbar-search__input{
		width:140px;
	}

}

/* MOBIL LENYÍLÓ MENÜ – középre rendezett sorok */
@media (max-width: 767.98px) {
	#navbarHeader .navbar-nav > li > a,
	#navbarHeader .navbar-nav .nav-link {
		min-height: 64px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 16px;
		text-align: center;
		line-height: 1.2;
	}

	#navbarHeader .dropdown-toggle::after {
		margin-left: 8px;
	}
}

/* SOCIAL IONOK NAGYOBBRA */
.mesz-socials a {
	width: 30px;
	height: 30px;
}

.mesz-socials img {
	max-width: 30px;
	max-height: 30px;
	width: 30px;
	height: 30px;
	display: block;
}

.mesz-socials {
	gap: 12px;
}

/* MOBIL EXTRA MENÜ A HAMBURGER ALJÁN */
.mesz-mobile-extra-menu {
	display: none;
}

@media (max-width: 767.98px) {
	.mesz-mobile-extra-menu {
		display: block;
		width: 100%;
		margin-top: 18px;
		padding-top: 18px;
		border-top: 1px solid rgba(0,0,0,0.08);
	}

	.mesz-mobile-extra-menu__list {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.mesz-mobile-extra-menu__list li {
		margin: 0;
		padding: 0;
	}

	.mesz-mobile-extra-menu__list a {
		min-height: 56px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 16px;
		text-align: center;
		text-decoration: none;
		color: #1c2453;
		font-weight: 700;
		line-height: 1.2;
	}
}

/* HERO CAROUSEL – fallback alignment (ha nincs PNG overlay) */

.hero-carousel.no-overlay .carousel-caption,
.hero-carousel.no-overlay .hero-content {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	text-align: right;
	max-width: 520px;
	margin-left: auto;
	padding-right: 5%;
}

/* gomb jobbra */
.hero-carousel.no-overlay .btn,
.hero-carousel.no-overlay .hero-button {
	align-self: flex-end;
}

/* HERO CAROUSEL – desktop right align */
@media (min-width: 768px){

#hero .row.align-items-center{
    justify-content: flex-end;
}

#hero .row.align-items-center .col-md-6{
    max-width: 520px;
    flex: 0 0 520px;
}

}

/* HERO carousel mobil magasság javítás */
@media (max-width:768px){

#hero{
    height:auto !important;
    min-height:unset !important;
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item{
    height:auto !important;
    min-height:unset !important;
}

#hero video{
    height:auto !important;
    min-height:unset !important;
}

}

/* HERO SZÖVEG – mobil középre igazítás kép esetén */
@media (max-width:768px){

#hero .carousel-caption,
#hero .hero-content,
#hero .row.align-items-center{
    justify-content:center;
    align-items:center;
    text-align:center;
}

#hero .carousel-caption{
    top:50%;
    transform:translateY(-50%);
    bottom:auto;
    padding-top:0;
}

/* cím */
#hero h1,
#hero .text-xlarge{
    margin-bottom:16px;
}

/* gomb */
#hero .btn{
    margin:0 auto;
}

}

@media (max-width:768px){

#hero .carousel-caption{
    width:90%;
    left:50%;
    transform:translate(-50%, -50%);
}

}

/* HERO mobil – kép esetén tényleg középre */
@media (max-width: 768px) {

	#hero .carousel-item.responsive-carousel {
		position: relative;
		height: auto !important;
		min-height: 0 !important;
	}

	#hero .carousel-item.responsive-carousel > img,
	#hero .carousel-item.responsive-carousel picture img,
	#hero .carousel-item.responsive-carousel video {
		display: block;
		width: 100%;
		height: auto !important;
		object-fit: cover;
	}

	#hero .carousel-item.responsive-carousel .carousel-caption,
	#hero .carousel-item.responsive-carousel .hero-content,
	#hero .carousel-item.responsive-carousel .row.align-items-center {
		position: absolute !important;
		inset: 0;
		display: flex !important;
		flex-direction: column;
		align-items: center !important;
		justify-content: center !important;
padding-top: 48px;
padding-bottom: 24px;
		text-align: center !important;
		padding: 24px 20px;
		margin: 0 !important;
		transform: none !important;
	}

	#hero .carousel-item.responsive-carousel .col-12,
	#hero .carousel-item.responsive-carousel .col-md-6 {
		width: 100%;
		max-width: 100%;
		flex: 0 0 100%;
		padding: 0 !important;
		text-align: center !important;
	}

	#hero .carousel-item.responsive-carousel h1,
	#hero .carousel-item.responsive-carousel .text-xlarge {
		margin: 0 0 18px 0 !important;
		text-align: center !important;
	}

	#hero .carousel-item.responsive-carousel .btn,
	#hero .carousel-item.responsive-carousel .hero-button {
		margin: 0 auto !important;
		align-self: center !important;
	}
}

@media (max-width: 767.98px) {

	#hero,
	#hero > .container-fluid,
	#carouselHero,
	#hero .carousel,
	#hero .carousel-inner,
	#carouselHero > .carousel-inner,
	#hero .carousel > .carousel-inner,
	#hero .carousel-item,
	#hero .carousel-item.responsive-carousel {
		height: auto !important;
		min-height: 0 !important;
	}

	#hero .carousel-item.responsive-carousel {
		position: relative;
	}

	#hero .carousel-item.responsive-carousel img,
	#hero .carousel-item.responsive-carousel picture img,
	#hero .carousel-item.responsive-carousel video {
		display: block;
		width: 100%;
		height: auto !important;
		object-fit: cover;
	}

	#hero .carousel-item.responsive-carousel .container.h-100.w-100.position-absolute,
	#hero .carousel-item.responsive-carousel .container.h-100.position-absolute,
	#hero .carousel-item.responsive-carousel .container.position-absolute {
		position: absolute !important;
		inset: 0;
		height: 100% !important;
		width: 100% !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 20px !important;
	}

	#hero .carousel-item.responsive-carousel .row.align-items-center {
		width: 100%;
		margin: 0 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	#hero .carousel-item.responsive-carousel .col-12,
	#hero .carousel-item.responsive-carousel .col-md-6 {
		width: 100%;
		max-width: 100%;
		flex: 0 0 100%;
		padding: 0 !important;
		text-align: center !important;
	}

	#hero .carousel-item.responsive-carousel h1,
	#hero .carousel-item.responsive-carousel .text-xlarge {
		margin: 0 0 16px 0 !important;
		text-align: center !important;
	}

	#hero .carousel-item.responsive-carousel .btn {
		margin: 0 auto !important;
		display: inline-flex;
	}
}

@media (max-width: 767.98px) {
	#hero .carousel-caption,
	#hero .hero-content,
	#hero .container.position-absolute,
	#hero .container.h-100.position-absolute,
	#hero .container.h-100.w-100.position-absolute {
		pointer-events: none;
	}

	#hero .carousel-caption .btn,
	#hero .hero-content .btn,
	#hero .carousel-caption a,
	#hero .hero-content a {
		pointer-events: auto;
	}
}

#map .responsive-map {
	height: 620px;
	padding: 0;
}

#map .responsive-map > div,
#map .responsive-map .hunrowing-map-wrap,
#map .responsive-map .hunrowing-map,
#map .responsive-map #map,
#map .responsive-map .leaflet-container,
#map .responsive-map .google-map {
	height: 100% !important;
	min-height: 620px;
}

#map .hunrowing-af-wrap {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 24px;
	align-items: start;
}

#map .hunrowing-af-filters {
	background: #fff;
	padding: 20px;
	border: 1px solid #ddd;
}

#map .hunrowing-af-map {
	min-height: 620px;
}

#map .hunrowing-af-map .leaflet-container,
#map .hunrowing-af-map .google-map {
	min-height: 620px;
	height: 100% !important;
}

@media (max-width: 991.98px) {
	#map .hunrowing-af-wrap {
		grid-template-columns: 1fr;
	}
}

.hre-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.hre-map-wrap {
  min-height: 620px;
}

.hre-map {
  width: 100%;
  min-height: 620px;
  height: 620px;
}

@media (max-width: 991.98px) {
  .hre-grid {
    grid-template-columns: 1fr;
  }

  .hre-map-wrap,
  .hre-map {
    min-height: 420px;
    height: 420px;
  }
}

/* ===== HUNROWING ACTIVITY FINDER – PAGE STYLE ===== */

#map {
	padding: 40px 0 60px;
}

#map .container-fluid {
	max-width: 1920px;
	margin: 0 auto;
	padding-left: 16px !important;
	padding-right: 16px !important;
}

.hre-finder {
	--hre-blue: #163f7a;
	--hre-cyan: #47c7cc;
	--hre-text: #1f2d3d;
	--hre-muted: #6b7280;
	--hre-border: #d9dee7;
	--hre-bg: #f3f4f6;

	font-family: inherit;
	color: var(--hre-text);
}

/* top filters */
.hre-topbar {
	display: grid;
	grid-template-columns: 1.1fr 1.1fr 1fr 1fr auto auto auto 1fr;
	gap: 12px;
	align-items: end;
	margin-bottom: 14px;
}

.hre-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.hre-field label {
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
	margin: 0;
}

.hre-field input,
.hre-field select {
	height: 40px;
	border: 1px solid var(--hre-border);
	border-radius: 12px;
	padding: 0 14px;
	background: #fff;
	font-size: 14px;
	color: var(--hre-text);
	outline: none;
	box-shadow: none;
}

.hre-field input:focus,
.hre-field select:focus {
	border-color: var(--hre-cyan);
}

.hre-actions {
	display: flex;
	align-items: end;
	gap: 10px;
}

.hre-actions button {
	height: 40px;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid var(--hre-border);
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: .2s ease;
}

.hre-submit {
	background: var(--hre-blue) !important;
	color: #fff !important;
	border-color: var(--hre-blue) !important;
}

.hre-submit:hover {
	opacity: .92;
}

.hre-nearme:hover,
.hre-reset:hover {
	background: #f8fafc;
}

.hre-status {
	justify-self: end;
	align-self: center;
	font-size: 14px;
	font-weight: 600;
	color: #4b5563;
	white-space: nowrap;
}

/* layout */
.hre-grid {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 18px;
	align-items: stretch;
}

/* left list */
.hre-list {
	height: 530px;
	overflow: auto;
	padding-right: 6px;
}

.hre-list::-webkit-scrollbar {
	width: 8px;
}

.hre-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 999px;
}

.hre-list > * + * {
	margin-top: 14px;
}

/* generic card styling for injected items */
.hre-item,
.hre-card,
.hre-list article,
.hre-list .club-card,
.hre-list .hre-result {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	padding: 14px;
	box-shadow: 0 1px 1px rgba(0,0,0,.02);
}

.hre-list img {
	max-width: 72px;
	height: auto;
	border-radius: 12px;
	display: block;
}

.hre-list h3,
.hre-list h4,
.hre-list .hre-name,
.hre-list .title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--hre-blue);
}

.hre-list p,
.hre-list .hre-meta,
.hre-list .hre-address {
	margin: 0 0 8px;
	font-size: 14px;
	color: #374151;
	line-height: 1.4;
}

.hre-list a.hre-detail,
.hre-list a.hre-web,
.hre-list .btn,
.hre-list button,
.hre-list .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid var(--hre-border);
	background: #fff;
	color: var(--hre-blue);
	margin-right: 8px;
}

.hre-list a.hre-detail,
.hre-list .btn-primary,
.hre-list .primary {
	background: var(--hre-blue);
	color: #fff;
	border-color: var(--hre-blue);
}

/* map */
.hre-map-wrap {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	padding: 10px;
	min-height: 550px;
	box-shadow: 0 1px 1px rgba(0,0,0,.02);
}

.hre-map,
#hre-map {
	width: 100%;
	height: 530px;
	min-height: 530px;
	border-radius: 16px;
	overflow: hidden;
}

/* leaflet popup */
.leaflet-popup-content {
	font-size: 14px;
	line-height: 1.4;
}

.leaflet-popup-content img {
	border-radius: 10px;
}

/* suggestions */
.hre-suggest {
	position: absolute;
	z-index: 50;
	background: #fff;
	border: 1px solid var(--hre-border);
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,.08);
	margin-top: 4px;
	width: 100%;
}

.hre-field-search,
.hre-field-location {
	position: relative;
}

/* mobile/tablet */
@media (max-width: 1199.98px) {
	.hre-topbar {
		grid-template-columns: repeat(4, 1fr);
	}

	.hre-status {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

@media (max-width: 991.98px) {
	.hre-topbar {
		grid-template-columns: 1fr 1fr;
	}

	.hre-actions {
		grid-column: 1 / -1;
		flex-wrap: wrap;
	}

	.hre-status {
		grid-column: 1 / -1;
	}
	
	.hre-grid {
		grid-template-columns: 1fr;
	}

	.hre-list {
		height: auto;
		max-height: 420px;
		order: 2;
	}

	.hre-map-wrap {
		order: 1;
		min-height: 420px;
	}

	.hre-map,
	#hre-map {
		height: 420px;
		min-height: 420px;
	}
}

@media (max-width: 575.98px) {
	.hre-topbar {
		grid-template-columns: 1fr;
	}

	.hre-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hre-actions button {
		width: 100%;
	}
}

.hre-field-search,
.hre-field-location {
	border-top: 0 !important;
	box-shadow: none !important;
}

.hre-field-search::before,
.hre-field-search::after,
.hre-field-location::before,
.hre-field-location::after {
	display: none !important;
	content: none !important;
}

.hre-field-search label,
.hre-field-location label {
	border-top: 0 !important;
	box-shadow: none !important;
}

.hre-topbar * {
	background-image: none !important;
}

.hre-suggest {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	width: 100%;
	background: #fff;
	border: 1px solid #d9dee7;
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(0,0,0,.08);
	overflow: hidden;
	z-index: 50;
}

.hre-suggest__item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	background: #fff;
	border: 0;
	border-bottom: 1px solid #eef2f7;
	cursor: pointer;
	font-size: 14px;
}

.hre-suggest__item:last-child {
	border-bottom: 0;
}

.hre-suggest__item:hover {
	background: #f8fafc;
}