/* ==========================================================================
   Tekeregj 3.9.271 – mobil tömörítés (csak 767 px alatt)
   Fejléc, főoldali blokkok, lábléc. Az asztali nézet nem változik.
   ========================================================================== */

/* A lebegő ikon csak a láblécces oldalakon tűnik el (ott a láblécben a link).
   A lábléc nélküli térképes oldalakon (Térképes kereső, Közösségi útvonalak, Útvonaltervező) marad. */
body:has(.tk-footer-cookie-link) .tcs-launcher { display: none !important; }
/* 3.9.273: Térképes keresőn nyitott szűrőpanelnél a süti ikon a térkép bal alsó sarkába kerül,
   ne takarja a „Túrák megjelenítése” gombot. */
@media (min-width: 480px) {
	body.page-template-pagetemplate-tour-search-map:has(.sidebar-wrapper-col:not(.slideLeft)) #trail-consent-root .tcs-launcher {
		left: calc(var(--tk-map-panel-width, 360px) + 40px) !important;
	}
}
@media (max-width: 479px) {
	body.page-template-pagetemplate-tour-search-map:has(.sidebar-wrapper-col:not(.slideLeft)) #trail-consent-root .tcs-launcher {
		bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
	}
}
.tk-footer-cookie-link a { align-items: center; cursor: pointer; display: inline-flex; gap: 8px; }
.tk-footer-cookie-link .tk-footer-cookie-icon { flex: 0 0 auto; height: 20px; width: 20px; }
#tk-mobile-menu .tk-mobile-cookie {
	align-items: center; border-top: 1px solid rgba(0, 104, 135, .12); color: inherit; display: flex; font-size: 14px;
	gap: 10px; margin-top: 12px; opacity: .8; padding: 14px 4px 4px; text-decoration: none;
}
#tk-mobile-menu .tk-mobile-cookie svg { flex: 0 0 18px; }

/* Közösségi útvonalak kereső: nincs külön fókuszkiemelés (minden méretben). */
body .trp-app .trp-public-search:focus-within,
body .trp-public-search:focus-within {
	outline: none !important;
	box-shadow: none !important;
}
body .trp-app .trp-public-search input,
body .trp-app .trp-public-search input:focus,
body .trp-app .trp-public-search input:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

/* A főoldali mobil gyorskereső asztalon rejtve. */
.tk-home-msearch { display: none; }

@media (max-width: 767px) {

	/* ---------- Fejléc: kisebb felső térköz ---------- */
	/* Csak a láblécces (normál) oldalakon: a térképes, teljes magasságú oldalak a régi fejlécmagassággal számolnak. */
	body:has(footer.tk-footer) header.header.tekeregj-site-header {
		padding-top: 14px !important;
		padding-bottom: 14px !important;
	}

	/* ---------- Közös: kisebb blokktérközök, rövidebb fejlécek ---------- */
	.elementor:has(.elementor-widget-tekeregj-home-hero) .elementor-widget-spacer .elementor-spacer-inner { height: 6px !important; }
	.elementor:has(.elementor-widget-tekeregj-home-hero) .elementor-widget:not(:last-child) { margin-bottom: 0 !important; }
	body .tk-home-tool,
	body .tk-modern-tour-listing { padding-top: 20px !important; padding-bottom: 20px !important; }
	body .tk-home-section.tk-home-editorial { padding-top: 28px !important; padding-bottom: 8px !important; }
	body .tk-home-tool .tk-tool-heading { margin-bottom: 14px !important; }
	body .tk-home-tool .tk-tool-heading p,
	body .tk-modern-tour-listing__heading p { display: none !important; }
	body .tk-home-tool .tk-tool-heading h2,
	body .tk-modern-tour-listing__heading h2,
	body .tk-home-editorial .tk-home-heading h2 { font-size: 24px !important; line-height: 1.2 !important; margin-bottom: 0 !important; }

	/* Vízszintesen húzható sor – közös alap */
	body .tk-modern-tour-grid,
	body .tk-weekend__grid,
	body .tk-home-editorial__grid {
		display: flex !important;
		gap: 12px !important;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 2px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 2px 2px 10px !important;
		margin-right: -20px !important;
		padding-right: 20px !important;
	}
	body .tk-modern-tour-grid::-webkit-scrollbar,
	body .tk-weekend__grid::-webkit-scrollbar,
	body .tk-home-editorial__grid::-webkit-scrollbar { display: none; }
	body .tk-modern-tour-grid > *,
	body .tk-weekend__grid > *,
	body .tk-home-editorial__grid > * {
		flex: 0 0 84% !important;
		max-width: 84% !important;
		scroll-snap-align: start;
		margin: 0 !important;
	}

	/* ---------- Hero: rövidebb, a látványelem mobilon rejtve ---------- */
	body .tk-home-hero { padding: 22px 0 18px !important; min-height: 0 !important; }
	body .tk-home-hero__grid { gap: 0 !important; }
	body .tk-home-hero h1 { font-size: 34px !important; line-height: 1.08 !important; margin: 10px 0 12px !important; }
	body .tk-home-hero__copy > p { font-size: 15px !important; line-height: 1.55 !important; margin-bottom: 16px !important; }
	body .tk-home-hero .tk-home-actions { flex-direction: row !important; gap: 8px !important; }
	body .tk-home-hero .tk-home-actions .tk-home-button { flex: 1 1 0; justify-content: center !important; min-width: 0; padding-inline: 10px !important; font-size: 13.5px !important; white-space: nowrap; }
	body .tk-home-hero .tk-home-actions .tk-home-button svg,
	body .tk-home-hero .tk-home-actions .tk-home-button span { display: none !important; }
	body .tk-home-hero__checks,
	body .tk-home-hero .tk-home-planner { display: none !important; }

	/* Gyorskereső a hero alatt */
	.tk-home-msearch {
		align-items: center;
		background: #fff;
		border: 1px solid #dce5eb;
		border-radius: 14px;
		box-shadow: 0 8px 22px rgba(23, 32, 51, .08);
		display: flex;
		gap: 8px;
		height: 50px;
		margin: 0 16px 6px;
		padding: 0 6px 0 14px;
	}
	.tk-home-msearch svg { fill: none; flex: 0 0 18px; height: 18px; stroke: #687789; stroke-linecap: round; stroke-width: 2; width: 18px; }
	.tk-home-msearch input {
		-webkit-appearance: none; appearance: none;
		background: transparent; border: 0 !important; box-shadow: none !important; color: #20343f;
		flex: 1 1 auto; font: inherit; font-size: 16px; height: 100%; min-width: 0; outline: none !important; padding: 0 !important;
	}
	.tk-home-msearch input::placeholder { color: #687789; opacity: 1; }
	.tk-home-msearch button {
		background: #006887; border: 0; border-radius: 10px; color: #fff; cursor: pointer;
		font: inherit; font-size: 14px; font-weight: 600; height: 38px; padding: 0 14px;
	}
	body.dark .tk-home-msearch { background: #173741; border-color: #315d6b; }
	body.dark .tk-home-msearch input { color: #f5f7fb; }
	body.dark .tk-home-msearch input::placeholder { color: #b8c8d2; }

	/* Mobilon a túrák közvetlenül a kereső alá kerülnek */
	.elementor:has(> .elementor-top-section .elementor-widget-tekeregj-home-hero) { display: flex; flex-direction: column; }
	.elementor:has(> .elementor-top-section .elementor-widget-tekeregj-home-hero) > .elementor-top-section { order: 10; }
	.elementor:has(> .elementor-top-section .elementor-widget-tekeregj-home-hero) > .elementor-top-section:has(.elementor-widget-tekeregj-home-hero) { order: 1; }
	.elementor:has(> .elementor-top-section .elementor-widget-tekeregj-home-hero) > .elementor-top-section:has(.elementor-widget-tekeregj-two-tour-listing-modern-widget) { order: 2; }

	/* ---------- „Útvonalak, amikért érdemes elindulni” ---------- */
	body .tk-modern-tour-listing { overflow: hidden; }
	body .tk-modern-tour-listing__heading { display: block !important; margin-bottom: 14px !important; position: relative !important; }
	body .tk-modern-tour-listing__heading > a {
		background: none !important; border: 0 !important; font-size: 13px !important; min-height: 30px !important;
		padding: 0 !important; position: absolute !important; right: 0; top: -4px;
	}
	body .tk-modern-tour-card__image { height: 160px !important; aspect-ratio: auto !important; }
	body .tk-modern-tour-card__body { padding: 14px 16px 12px !important; }
	body .tk-modern-tour-card__body h3 { font-size: 17px !important; margin-bottom: 8px !important; }
	body .tk-modern-tour-card__meta { margin-bottom: 8px !important; }

	/* ---------- Statisztika: kompakt 2×2 ---------- */
	body .tk-stats__grid { gap: 8px !important; }
	body .tk-stats .tk-stat {
		align-items: center !important; display: grid !important; grid-template-columns: 30px 1fr; column-gap: 10px;
		min-height: 0 !important; padding: 12px !important; text-align: left !important;
	}
	body .tk-stats .tk-stat__icon { grid-row: span 2; margin: 0 !important; }
	body .tk-stats .tk-stat strong { font-size: 20px !important; line-height: 1.1 !important; margin: 0 !important; }
	body .tk-stats .tk-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
	body .tk-stats .tk-stat small { font-size: 11.5px !important; line-height: 1.25 !important; margin: 0 !important; }

	/* ---------- Hétvégi időjárás: oldalra húzható ---------- */
	body .tk-weekend__grid > .tk-weekend-card { padding: 16px 18px !important; }
	body .tk-weekend-card .tk-weather-values { margin: 6px 0 !important; }

	/* ---------- Regisztrációs sáv: rövidebb ---------- */
	body .tk-registration-banner__content { padding: 26px 22px !important; gap: 0 !important; }
	body .tk-registration-banner__copy h2 { font-size: 28px !important; line-height: 1.12 !important; }
	body .tk-registration-banner__copy p { font-size: 15px !important; margin-bottom: 16px !important; }
	body .tk-registration-banner__visual { display: none !important; }

	/* ---------- „Milyen túrára vágysz?”: kis négyzetek, 2×2 ---------- */
	body .tkh27-tiles__grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
	body .tkh27-tiles__grid .tkh27-tile {
		align-items: center !important; aspect-ratio: 1 / .7; display: flex !important; flex-direction: column !important;
		gap: 8px !important; justify-content: center !important; min-height: 0 !important; padding: 12px 8px !important; text-align: center !important;
	}
	body .tkh27-tile .tkh27-tile__text,
	body .tkh27-tile small { display: none !important; }
	body .tkh27-tile strong { font-size: 15px !important; line-height: 1.2 !important; margin: 0 !important; }
	body .tkh27-tile .tkh27-tile__icon { margin: 0 !important; }

	/* ---------- „Messzebb mennél?”: oldalra húzható ---------- */
	body .tk-home-editorial .tk-home-heading { margin-bottom: 14px !important; }
	body .tk-home-editorial__grid > .tk-home-feature { height: 300px !important; min-height: 0 !important; }

	/* ---------- Lábléc ---------- */
	body footer.tk-footer { padding-top: 20px !important; }
	body footer.tk-footer .tk-footer-shell { padding-top: 24px !important; padding-bottom: 16px !important; }
	body footer.tk-footer .tk-footer-top { margin-bottom: 18px !important; }
	body footer.tk-footer .tk-footer-callout { padding: 20px !important; gap: 14px !important; }
	body footer.tk-footer .tk-footer-callout p { display: none !important; }
	body footer.tk-footer .tk-footer-callout .tk-footer-title { font-size: 21px !important; margin-bottom: 0 !important; }
	body footer.tk-footer .tk-footer-actions { flex-direction: row !important; gap: 8px !important; }
	body footer.tk-footer .tk-footer-actions .tk-footer-button { flex: 1 1 0; justify-content: center !important; min-width: 0; padding-inline: 10px !important; font-size: 14px !important; white-space: nowrap; }
	body footer.tk-footer .tk-footer-actions .tk-footer-button svg { display: none !important; }

	body footer.tk-footer .tk-footer-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 18px 16px !important; padding-bottom: 6px !important; }
	/* Bemutatkozó szöveg mobilon rejtve (a sötét mód a fejlécben is váltható) */
	body footer.tk-footer .tk-footer-grid > .tk-footer-column:first-child { display: none !important; }
	body footer.tk-footer .tk-footer-grid > .tk-footer-column:has(.widget_tk_footer_newsletter) { grid-column: 1 / -1; }
	body footer.tk-footer .widget_nav_menu ul.menu { margin: 0 !important; }
	body footer.tk-footer .widget_nav_menu ul.menu li { margin: 0 !important; padding: 0 !important; }
	body footer.tk-footer .widget_nav_menu ul.menu a { display: block; font-size: 14px !important; line-height: 1.35 !important; min-height: 0 !important; padding: 5px 0 !important; }

	body footer.tk-footer .tk-footer-newsletter > p,
	body footer.tk-footer .tk-footer-email-label { display: none !important; }
	body footer.tk-footer .tk-footer-newsletter .tk-footer-title { font-size: 17px !important; margin-bottom: 10px !important; }
	body footer.tk-footer .tk-footer-subscribe { gap: 8px !important; }
	body footer.tk-footer .tk-footer-consent { font-size: 12px !important; line-height: 1.4 !important; }

	body footer.tk-footer .tk-footer-bottom { margin-top: 18px !important; padding-top: 14px !important; padding-bottom: 6px !important; }
	body footer.tk-footer .tk-footer-bottom-content { align-items: center !important; flex-direction: column !important; gap: 8px !important; text-align: center; }
	body footer.tk-footer .tk-footer-bottom-content p { font-size: 12px !important; margin: 0 !important; }
	body footer.tk-footer .tk-footer-bottom-menu { display: flex !important; flex-wrap: wrap !important; gap: 4px 14px !important; justify-content: center !important; margin: 0 !important; }
	body footer.tk-footer .tk-footer-bottom-menu li { margin: 0 !important; padding: 0 !important; }
	body footer.tk-footer .tk-footer-bottom-menu a { font-size: 12.5px !important; min-height: 32px !important; padding: 2px 0 !important; }
}

/* ==========================================================================
   3.9.272 – mobil finomítások a visszajelzés alapján
   ========================================================================== */
@media (max-width: 767px) {
	/* Kereső: nincs vonal fölötte, nem vágódik az árnyéka, több levegő körülötte */
	body .tk-home-hero { border-bottom: 0 !important; }
	.elementor:has(.elementor-widget-tekeregj-home-hero) .tekeregj-home-block { overflow: visible !important; }
	body .tk-home-msearch { height: 54px !important; margin: 20px 6px 26px !important; }

	/* Statisztika: folytonos elválasztó vonalak */
	body .tk-stats__grid { column-gap: 0 !important; row-gap: 0 !important; }
	body .tk-stats .tk-stat { padding: 14px 10px !important; }

	/* Túrák: nincs külső keret, a sor a kijelző széléig fut */
	body .tk-modern-tour-listing,
	body .tk-modern-tour-listing__inner {
		background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
		overflow: visible !important; padding-left: 0 !important; padding-right: 0 !important;
	}
	body .tk-modern-tour-listing::before,
	body .tk-modern-tour-listing::after { display: none !important; }
	body .tk-weekend,
	body .tk-home-editorial,
	body .tk-home-editorial .tk-home-shell { overflow: visible !important; }

	/* Húzható sorok: a kijelző széléig (a kártyák a képernyő széle mögé csúsznak) */
	body .tk-modern-tour-grid,
	body .tk-weekend__grid,
	body .tk-home-editorial__grid {
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		padding: 0 calc(50vw - 50%) 4px !important;
		scroll-padding-inline: 16px !important;
	}

	/* Kártyák mint a „Messzebb mennél?”: nincs árnyék, nincs hover-emelés */
	body .tk-modern-tour-card,
	body .tk-modern-tour-card:hover,
	body .tk-modern-tour-card:focus-within,
	body .tk-weekend-card,
	body .tk-weekend-card:hover {
		box-shadow: none !important; transform: none !important; transition: border-color .2s ease !important;
	}
	body .tk-modern-tour-card *,
	body .tk-weekend-card * { transform: none !important; }

	/* „Milyen túrára vágysz?”: visszafogottabb keret és felirat */
	body .tkh27-tiles__grid .tkh27-tile { border-color: rgba(0, 104, 135, .10) !important; box-shadow: none !important; }
	body .tkh27-tile strong { color: #4a5060 !important; font-size: 14px !important; font-weight: 600 !important; }
	body .tkh27-tile .tkh27-tile__icon { opacity: .85; }
	body.dark .tkh27-tile strong { color: #d5e3e8 !important; }
	body.dark .tkh27-tiles__grid .tkh27-tile { border-color: rgba(255, 255, 255, .10) !important; }
}

/* 3.9.273 – Térképes kereső: a magasság a valódi fejléc alatti hely (JS: --tk-map-top), nem fix 90 px. */
body.page-template-pagetemplate-tour-search-map .map-search-wrapper .sidebar-wrapper-col,
body.page-template-pagetemplate-tour-search-map #map {
	height: calc(100vh - var(--tk-map-top, 90px)) !important;
	height: calc(100dvh - var(--tk-map-top, 90px)) !important;
}
body.page-template-pagetemplate-tour-search-map .map-search-wrapper .sidebar-wrapper-col .sidebar,
body.page-template-pagetemplate-tour-search-map .map-search-wrapper .sidebar-wrapper-col .sidebar.tk-map-filter-card {
	height: calc(100vh - var(--tk-map-top, 90px)) !important;
	height: calc(100dvh - var(--tk-map-top, 90px)) !important;
}
