#gp-kereso {
	--o: #f05a00;
	--g: #149b32;
	--t: #111;
	--m: #6f737a;
	--l: #e6e8ec;
	--bg: #f5f6f8;
	--r: 16px;
	--s: 0 10px 30px #14192314;

	/* a sitebuild .stage-e */
	width: min(978px, calc(100% - 32px));
	margin: 32px auto 50px;

	/* a sitebuild body-ja */
	font: 15px Arial;
	color: var(--t);
	text-align: left;
}

#gp-kereso *,
#gp-kereso *::before,
#gp-kereso *::after { box-sizing: border-box; }

#gp-kereso button,
#gp-kereso input,
#gp-kereso select { font: inherit; }

/* Foundation-resetek: a prefixelés a class-ütközéseket megszünteti, de a csupasz
   button/select/input/label szabályok beszivárognak. */
#gp-kereso button {
	margin: 0;                 /* Foundation: margin 0 0 1.25rem */
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	text-align: left;
	text-decoration: none;
	line-height: normal;
	transition: none;
	-webkit-appearance: none;
	appearance: none;
}
#gp-kereso button:hover,
#gp-kereso button:focus,
#gp-kereso button:active {
	/* Foundation kék hover-e; az egyes vezérlők saját hover-állapota lentebb van */
	background: none;
	color: inherit;
}
#gp-kereso select,
#gp-kereso input[type=text] {
	margin-bottom: 0;          /* Foundation: margin 0 0 1rem */
	text-transform: none;
	line-height: normal;
}
#gp-kereso label { margin: 0; }
#gp-kereso [hidden] { display: none !important; }

/* Kártya, fülek */
#gp-kereso .gpk-finder {
	background: #fff;
	border: 1px solid var(--l);
	border-radius: var(--r);
	box-shadow: var(--s);
	overflow: hidden;
}

#gp-kereso .gpk-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #fafafa;
	border-bottom: 1px solid var(--l);
}
#gp-kereso .gpk-tab {
	height: 66px;
	border: 0;
	background: none;
	color: var(--m);
	font-weight: 800;
	position: relative;
	text-align: center;
	cursor: pointer;
}
#gp-kereso .gpk-tab.gpk-on,
#gp-kereso .gpk-tab.gpk-on:hover,
#gp-kereso .gpk-tab.gpk-on:focus { background: #fff; color: #111; }
#gp-kereso .gpk-tab.gpk-on:after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 25px;
	right: 25px;
	height: 4px;
	background: var(--o);
	border-radius: 4px 4px 0 0;
}

#gp-kereso .gpk-panel { padding: 24px; }
#gp-kereso .gpk-group { margin-bottom: 18px; }
#gp-kereso .gpk-label {
	display: block;
	margin-bottom: 8px;
	color: var(--m);
	font-size: 12px;
	font-weight: 700;
}

/* Szegmens-gombok és chipsek */
#gp-kereso .gpk-segrow,
#gp-kereso .gpk-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#gp-kereso .gpk-seg,
#gp-kereso .gpk-chip {
	border: 1px solid var(--l);
	background: #fff;
	color: #333;
	border-radius: 8px;
	min-height: 42px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
#gp-kereso .gpk-seg:hover,
#gp-kereso .gpk-seg:focus,
#gp-kereso .gpk-chip:hover,
#gp-kereso .gpk-chip:focus { background: #fff; color: #333; }

#gp-kereso .gpk-seg.gpk-on,
#gp-kereso .gpk-seg.gpk-on:hover,
#gp-kereso .gpk-seg.gpk-on:focus {
	background: #111;
	border-color: #111;
	color: #fff;
}

#gp-kereso .gpk-chip {
	min-height: 35px;
	border-radius: 999px;
	font-size: 12px;
}
#gp-kereso .gpk-chip.gpk-on,
#gp-kereso .gpk-chip.gpk-on:hover,
#gp-kereso .gpk-chip.gpk-on:focus {
	background: var(--o);
	border-color: var(--o);
	color: #fff;
}

/* Ikonos szegmens-gombok (sitebuild 3. verzió: emoji helyett inline SVG) */
#gp-kereso .gpk-seg {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
#gp-kereso .gpk-seg svg {
	width: 21px;
	height: 21px;
	flex: 0 0 auto;
	stroke-linecap: round;
	stroke-linejoin: round;
}
#gp-kereso .gpk-i-summer { color: var(--o); }
#gp-kereso .gpk-i-winter { color: #1687d9; }
#gp-kereso .gpk-i-all .gpk-warm { stroke: var(--o); }
#gp-kereso .gpk-i-all .gpk-cold { stroke: #1687d9; }
#gp-kereso .gpk-i-car    { color: #f05a00; }
#gp-kereso .gpk-i-motor  { color: #1687d9; }
#gp-kereso .gpk-i-van    { color: #149b32; }
#gp-kereso .gpk-i-other  { color: #7b61d1; }
#gp-kereso .gpk-seg.gpk-on .gpk-i-summer,
#gp-kereso .gpk-seg.gpk-on .gpk-i-car   { color: #ff8a45; }
#gp-kereso .gpk-seg.gpk-on .gpk-i-winter,
#gp-kereso .gpk-seg.gpk-on .gpk-i-motor { color: #58b8ff; }
#gp-kereso .gpk-seg.gpk-on .gpk-i-van   { color: #55cc70; }
#gp-kereso .gpk-seg.gpk-on .gpk-i-other { color: #b7a8ff; }

/* Méret-combók, gyorskereső */
#gp-kereso .gpk-fields {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
#gp-kereso .gpk-control label {
	font-size: 12px;
	color: var(--m);
	font-weight: 700;
	display: block;
	cursor: default;
}

#gp-kereso select,
#gp-kereso input[type=text] {
	width: 100%;
	height: 50px;
	margin-top: 7px;
	border: 1px solid #d7d9de;
	border-radius: 9px;
	background: #fff;
	color: #17181b;
	padding: 0 44px 0 14px;
	outline: 0;
	box-shadow: 0 1px 2px #0f141e08;
}
#gp-kereso select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f737a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
#gp-kereso select:focus,
#gp-kereso input:focus {
	border-color: var(--o);
	box-shadow: 0 0 0 4px #f05a001f;
}
#gp-kereso select:disabled {
	background-color: #f1f2f4;
	color: #aaa;
}

#gp-kereso .gpk-quick {
	position: relative;
	margin-top: 12px;
}
#gp-kereso .gpk-quick svg,
#gp-kereso .gpk-brand svg {
	position: absolute;
	width: 19px;
	color: #777;
}
#gp-kereso .gpk-quick svg { left: 14px; top: 23px; }
#gp-kereso .gpk-quick input { padding-left: 42px; }

/* 2. / 3. lépés (összecsukható) */
#gp-kereso .gpk-step { border-top: 1px solid var(--l); }
#gp-kereso .gpk-head {
	width: 100%;
	height: 66px;
	border: 0;
	background: #fff;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
}
#gp-kereso .gpk-head:hover,
#gp-kereso .gpk-head:focus { background: #fcfcfd; color: inherit; }
#gp-kereso .gpk-title {
	display: flex;
	align-items: center;
	gap: 11px;
	font-weight: 900;
}
#gp-kereso .gpk-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #111;
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 12px;
}
#gp-kereso .gpk-arrow {
	width: 38px;
	height: 38px;
	border: 1px solid var(--l);
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #f8f8f9;
}
#gp-kereso .gpk-arrow svg { width: 19px; transition: .2s; }
#gp-kereso .gpk-head[aria-expanded=true] .gpk-arrow {
	background: #fff3eb;
	color: var(--o);
	border-color: #ffd3b8;
}
#gp-kereso .gpk-head[aria-expanded=true] .gpk-arrow svg { transform: rotate(180deg); }
#gp-kereso .gpk-body { padding: 3px 24px 24px; }

/* Minőség és márka */
#gp-kereso .gpk-quality {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}
#gp-kereso .gpk-brand { position: relative; }
#gp-kereso .gpk-brand svg { right: 14px; top: 22px; }
#gp-kereso .gpk-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 700;
	color: #444;
	cursor: pointer;
}
#gp-kereso .gpk-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--o);
}

/* További paraméterek */
#gp-kereso .gpk-subtabs {
	display: flex;
	gap: 22px;
	border-bottom: 1px solid var(--l);
	margin-bottom: 18px;
}
#gp-kereso .gpk-subtab {
	border: 0;
	background: none;
	padding: 10px 2px;
	color: var(--m);
	font-weight: 700;
	border-bottom: 3px solid transparent;
	cursor: pointer;
}
#gp-kereso .gpk-subtab:hover,
#gp-kereso .gpk-subtab:focus { background: none; color: var(--m); }
#gp-kereso .gpk-subtab.gpk-on,
#gp-kereso .gpk-subtab.gpk-on:hover,
#gp-kereso .gpk-subtab.gpk-on:focus { color: #111; border-color: var(--o); }

#gp-kereso .gpk-perf {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
#gp-kereso .gpk-grades {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
#gp-kereso .gpk-grade {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 8px;
	color: #fff;
	font-weight: 900;
	text-align: center;
	opacity: .45;
	cursor: pointer;
}
#gp-kereso .gpk-grade.gpk-on {
	opacity: 1;
	outline: 2px solid #111;
	outline-offset: 3px;
}
#gp-kereso .gpk-a,
#gp-kereso .gpk-a:hover,
#gp-kereso .gpk-a:focus { background: #159a36; color: #fff; }
#gp-kereso .gpk-b,
#gp-kereso .gpk-b:hover,
#gp-kereso .gpk-b:focus { background: #ffbe00; color: #111; }
#gp-kereso .gpk-c,
#gp-kereso .gpk-c:hover,
#gp-kereso .gpk-c:focus { background: #f05a00; color: #fff; }
#gp-kereso .gpk-d,
#gp-kereso .gpk-d:hover,
#gp-kereso .gpk-d:focus { background: #c62828; color: #fff; }

#gp-kereso .gpk-load {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

/* Aktív szűrők, lábléc */
#gp-kereso .gpk-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 15px 24px;
	border-top: 1px solid var(--l);
	background: #fafafa;
}
#gp-kereso .gpk-filters > span {
	font-size: 12px;
	color: var(--m);
	font-weight: 700;
}
#gp-kereso .gpk-filter {
	border: 1px solid #ffd2b6;
	background: #fff3eb;
	color: #c44800;
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}
#gp-kereso .gpk-filter:hover,
#gp-kereso .gpk-filter:focus { background: #ffe7d6; color: #c44800; }

#gp-kereso .gpk-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 24px;
}
#gp-kereso .gpk-hint {
	color: var(--g);
	font-size: 13px;
	font-weight: 800;
}
#gp-kereso .gpk-cta {
	min-width: 315px;
	height: 54px;
	border: 0;
	border-radius: 9px;
	background: linear-gradient(90deg, var(--o), #ff6100);
	color: #fff;
	font-weight: 900;
	font-size: 16px;
	text-align: center;
	box-shadow: 0 8px 18px #f05a0038;
	cursor: pointer;
}
#gp-kereso .gpk-cta:hover,
#gp-kereso .gpk-cta:focus {
	background: linear-gradient(90deg, var(--o), #ff6100);
	color: #fff;
}

@media (max-width: 700px) {
	/* A Foundation .columns 15px-es oldalpaddingja már ad keretet, ezért mobilon
	   nem szűkítünk tovább, sőt a negatív margó ebből is visszavesz. */
	#gp-kereso {
		width: auto;
		margin: 10px -6px 28px;
	}
	#gp-kereso .gpk-tab { height: 58px; font-size: 12px; padding: 0 8px; }
	#gp-kereso .gpk-panel { padding: 17px; }
	#gp-kereso .gpk-segrow { flex-wrap: nowrap; overflow-x: auto; }
	#gp-kereso .gpk-seg { flex: 0 0 auto; }
	#gp-kereso .gpk-fields,
	#gp-kereso .gpk-quality,
	#gp-kereso .gpk-perf,
	#gp-kereso .gpk-load { grid-template-columns: 1fr; }
	#gp-kereso .gpk-head { height: 60px; padding: 0 17px; }
	#gp-kereso .gpk-body { padding: 3px 17px 20px; }
	#gp-kereso .gpk-filters { padding: 13px 17px; }
	#gp-kereso .gpk-actions { display: block; padding: 16px 17px 19px; }
	#gp-kereso .gpk-hint { margin-bottom: 12px; }
	#gp-kereso .gpk-cta { width: 100%; min-width: 0; }
}

/* A működéshez kellő kiegészítések (nincsenek a sitebuildben) */

/* A sitebuild fix top-ja lejjebb csúsztatta az ikont, mert az input 7px-es felső
   margója kicsúszik a konténerből. Alulról a konténer alja = az input alja. */
#gp-kereso .gpk-quick svg,
#gp-kereso .gpk-brand svg {
	top: auto;
	bottom: 25px;
	transform: translateY(50%);
}

/* Egy fül (az autótípus szerinti keresés egyelőre nincs bekötve) */
#gp-kereso .gpk-tabs.gpk-one { grid-template-columns: 1fr; }

/* "Egyéb" jármű-kategória alsorának chipsei */
#gp-kereso .gpk-sub { margin-top: 10px; }

#gp-kereso .gpk-min {
	font-size: 12px;
	font-weight: 700;
	color: var(--m);
}

/* Üres állapot / tájékoztató szöveg a chips-sorok helyén */
#gp-kereso .gpk-note {
	font-size: 12px;
	font-weight: 700;
	color: var(--m);
	margin: 0;
}

/* Találatszám: méret nélkül még nincs mit kiírni, ilyenkor szürke a felirat */
#gp-kereso .gpk-hint.gpk-muted { color: var(--m); }
#gp-kereso .gpk-hint.gpk-zero  { color: #c62828; }

/* Töltés közben: a kártya nem ugrál, csak halványul */
#gp-kereso.gpk-busy .gpk-actions,
#gp-kereso.gpk-busy .gpk-filters { opacity: .55; }

/* A több választós chips-sorok kicsit sűrűbben, mert sok érték is lehet */
#gp-kereso .gpk-chips.gpk-tight { gap: 6px; }
#gp-kereso .gpk-chips.gpk-tight .gpk-chip { min-height: 31px; padding: 0 11px; }

/* Vízszintesen görgethető szegmens-sorok (mobil).
   Mobilon a .gpk-segrow nem tördel, hanem oldalra görög – de ez magától nem
   látszik. A wrapper két szélén egy-egy elhalványuló sáv jelzi, hogy arra
   még van tartalom; a JS (fooldal-kereso.js) a görgetés állapota szerint kapcsolja. */
#gp-kereso .gpk-scroller { position: relative; }

#gp-kereso .gpk-scroller::before,
#gp-kereso .gpk-scroller::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 38px;
	pointer-events: none;
	opacity: 0;
	transition: opacity .15s;
	z-index: 1;
}
#gp-kereso .gpk-scroller::before {
	left: 0;
	background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0));
}
#gp-kereso .gpk-scroller::after {
	right: 0;
	background: linear-gradient(270deg, #fff 30%, rgba(255,255,255,0));
}
#gp-kereso .gpk-scroller.gpk-bal::before,
#gp-kereso .gpk-scroller.gpk-jobb::after { opacity: 1; }

@media (max-width: 700px) {
	/* Vékony, mindig látszó görgetősáv – a fade és a nyíl mellé. */
	#gp-kereso .gpk-segrow { scrollbar-width: thin; scrollbar-color: var(--o) var(--l); }
	#gp-kereso .gpk-segrow::-webkit-scrollbar { height: 3px; }
	#gp-kereso .gpk-segrow::-webkit-scrollbar-track { background: var(--l); border-radius: 2px; }
	#gp-kereso .gpk-segrow::-webkit-scrollbar-thumb { background: var(--o); border-radius: 2px; }
}
