/**
 * Temetkezési Szolgáltató Kereső — frontend stílus.
 * Az oldal statikus (Elementor) kereső-designjához igazítva.
 */

.tk-kereso {
	--tk-barna:  #7a6e5e;
	--tk-barna2: #6a5f50;
	--tk-krem:   #fbf4ea;
	--tk-krem2:  #f4e8d7;
	--tk-keret:  #d2d0cb;
	--tk-szoveg: #000;
	--tk-halvany: rgba(0, 0, 0, .6);
	--tk-pill:   #54595f;
	--tk-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 100%;
	font-family: inherit;
	color: var(--tk-szoveg);
	scroll-margin-top: 150px;
}

.tk-kereso *,
.tk-kereso *::before,
.tk-kereso *::after { box-sizing: border-box; }

.tk-kereso [hidden] { display: none !important; }

.tk-kereso--mezo { gap: 10px; }

/* Kereső sáv */
.tk-kereso .tk-kereso-fejlec { display: flex; flex-direction: column; gap: 10px; }

.tk-kereso .tk-kereso-form {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--tk-keret);
	border-radius: var(--tk-radius);
	padding: 12px;
	margin: 0;
}

/* A hero (csak mező) változat a főoldali statikus sáv stílusával. */
.tk-kereso--mezo .tk-kereso-form {
	border: 0;
	border-left: 5px solid var(--tk-barna);
}

.tk-kereso .tk-kereso-mezo-wrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
}

.tk-kereso .tk-kereso-ikon {
	position: absolute;
	left: 2px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	color: var(--tk-barna);
	opacity: .5;
	pointer-events: none;
}

.tk-kereso .tk-kereso-mezo {
	width: 100%;
	min-height: 27px;
	margin: 0;
	padding: 4px 12px 4px 28px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--tk-szoveg);
	-webkit-appearance: none;
	appearance: none;
}

.tk-kereso .tk-kereso-mezo::placeholder { color: rgba(40, 34, 31, .4); opacity: 1; }
.tk-kereso .tk-kereso-mezo:focus { border: 0; outline: none; box-shadow: none; background: transparent; }

/* Gombok */
.tk-kereso .tk-gomb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	border: 0;
	border-radius: var(--tk-radius);
	font-family: inherit;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.tk-kereso .tk-gomb:focus-visible { outline: 2px solid var(--tk-barna); outline-offset: 2px; }

.tk-kereso .tk-gomb-kozelemben {
	order: 1;
	background: var(--tk-krem);
	color: var(--tk-pill);
	font-size: 14px;
	padding: 16px 18px;
}
.tk-kereso .tk-gomb-kozelemben:hover { background: var(--tk-krem2); color: #28221f; }
.tk-kereso .tk-gomb-kozelemben.tk-toltes { opacity: .55; cursor: progress; }
.tk-kereso .tk-gomb-kozelemben svg { flex: none; }

.tk-kereso .tk-gomb-kereses {
	order: 2;
	background: var(--tk-barna);
	color: #fff;
	font-size: 16px;
	padding: 16px 40px;
}
.tk-kereso .tk-gomb-kereses:hover { background: var(--tk-barna2); color: #fff; }

/* Autocomplete */
.tk-kereso .tk-ac-lista {
	position: absolute;
	z-index: 40;
	top: calc(100% + 14px);
	left: -13px;
	right: -13px;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--tk-keret);
	border-radius: var(--tk-radius);
	box-shadow: 0 14px 34px rgba(40, 34, 31, .12);
	max-height: 280px;
	overflow-y: auto;
}

.tk-kereso .tk-ac-elem { padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.3; cursor: pointer; }
.tk-kereso .tk-ac-elem:hover,
.tk-kereso .tk-ac-elem.tk-ac-aktiv { background: var(--tk-krem); }

/* Üzenet */
.tk-kereso .tk-uzenet { margin: 0; padding: 0 2px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.tk-kereso .tk-uzenet-hiba { color: #b3261e; }
.tk-kereso .tk-uzenet-info { color: var(--tk-halvany); }

/* Térkép + találati lista */
.tk-kereso .tk-kereso-tartalom { display: flex; align-items: stretch; gap: 60px; }

.tk-kereso .tk-terkep-wrap { flex: 1 1 auto; min-width: 0; border-radius: var(--tk-radius); overflow: hidden; }
.tk-kereso .tk-terkep { width: 100%; height: 600px; border-radius: var(--tk-radius); background: var(--tk-krem); }

.tk-kereso .tk-lista-wrap {
	flex: 0 0 435px;
	max-width: 435px;
	height: 600px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tk-kereso .tk-lista-osszegzes { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--tk-halvany); }

.tk-kereso .tk-lista {
	list-style: none;
	margin: 0;
	padding: 2px 4px 4px 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1 1 auto;
	overflow-y: auto;
	counter-reset: tk-sorszam;
}

/* Találati kártya */
.tk-kereso .tk-kartya {
	counter-increment: tk-sorszam;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--tk-keret);
	border-radius: var(--tk-radius);
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.tk-kereso .tk-kartya::before {
	content: counter(tk-sorszam, decimal-leading-zero);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: none;
	border-radius: 50%;
	background: var(--tk-barna);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .5px;
	line-height: 1;
}

.tk-kereso .tk-kartya:hover { border-color: var(--tk-barna); }
.tk-kereso .tk-kartya:focus-visible { outline: 2px solid var(--tk-barna); outline-offset: 2px; }
.tk-kereso .tk-kartya.tk-kartya-aktiv { border-color: var(--tk-barna); box-shadow: 0 0 0 1px var(--tk-barna); }

.tk-kereso .tk-kartya-fej { display: flex; align-items: flex-start; gap: 12px; }
.tk-kereso .tk-kartya-logo { flex: none; width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.tk-kereso .tk-kartya-fej > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.tk-kereso .tk-kartya-nev { margin: 0; font-family: inherit; font-size: 18px; font-weight: 400; line-height: 1.2; color: #000; }
.tk-kereso .tk-kartya-cim { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--tk-halvany); }
.tk-kereso .tk-kartya-tavolsag { flex: none; font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: 2px; color: var(--tk-barna); white-space: nowrap; }

.tk-kereso .tk-kartya-adatok { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-kereso .tk-kartya-adatok a {
	padding: 6px 10px;
	background: var(--tk-krem);
	color: var(--tk-pill);
	border-radius: 100px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease;
}
.tk-kereso .tk-kartya-adatok a:hover { background: var(--tk-krem2); color: #28221f; }

.tk-kereso .tk-kartya-nyitva { margin: 0; font-size: 13px; line-height: 1.35; color: var(--tk-halvany); }

/* Térkép-buborék */
.tk-buborek { font-family: inherit; font-size: 14px; line-height: 1.45; color: #28221f; max-width: 260px; }
.tk-buborek strong { display: block; font-size: 16px; font-weight: 500; margin-bottom: 2px; }
.tk-buborek-linkek { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tk-buborek-linkek a { padding: 4px 10px; background: #fbf4ea; color: #54595f; border-radius: 100px; font-size: 13px; font-weight: 500; text-decoration: none; }
.tk-buborek-tavolsag { display: inline-block; margin-top: 4px; color: #7a6e5e; font-weight: 500; letter-spacing: 1px; }

/* Reszponzív */
@media (max-width: 1200px) {
	.tk-kereso .tk-kereso-tartalom { gap: 32px; }
	.tk-kereso .tk-lista-wrap { flex-basis: 380px; max-width: 380px; }
}

@media (max-width: 1024px) {
	.tk-kereso .tk-gomb-kereses { padding: 16px 28px; }
	.tk-kereso .tk-lista-wrap { flex-basis: 330px; max-width: 330px; }
}

@media (max-width: 860px) {
	.tk-kereso { gap: 28px; scroll-margin-top: 90px; }
	.tk-kereso .tk-kereso-form { flex-wrap: wrap; }
	.tk-kereso .tk-kereso-mezo-wrap { flex: 1 1 100%; }
	.tk-kereso .tk-gomb { flex: 1 1 auto; }
	.tk-kereso .tk-gomb-kereses { padding: 14px 24px; }
	.tk-kereso .tk-gomb-kozelemben { padding: 14px 16px; }
	.tk-kereso .tk-kereso-tartalom { flex-direction: column; gap: 24px; }
	.tk-kereso .tk-terkep { height: 360px; }
	.tk-kereso .tk-lista-wrap { flex: 1 1 auto; max-width: none; height: auto; }
	.tk-kereso .tk-lista { max-height: 560px; }
}
