/* =========================================================
   Camper Search — styles
   ========================================================= */
.cs-search,
.cs-search *,
.cs-search-full,
.cs-search-full *,
.cs-results,
.cs-results *,
.cs-suggest__item,
.cs-suggest__item *,
.cs-suggest__loading,
.cs-suggest__empty,
.cs-suggest__all {
	font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.cs-search,
.cs-search * { box-sizing: border-box; }

.cs-search {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
	background: #fff;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}

.cs-search__field {
	position: relative;
	flex: 1 1 200px;
	display: flex;
	align-items: center;
}
.cs-search__field svg {
	position: absolute;
	left: 14px;
	color: #64748b;
	pointer-events: none;
}
.cs-search__input {
	width: 100%;
	height: 48px;
	padding: 0 14px 0 42px;
	border: 0;
	background: #f8fafc;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	color: #131313;
	outline: none;
	transition: background .15s ease;
}
.cs-search__input:focus { background: #f1f5f9; }
.cs-search__input::placeholder { color: #94a3b8; }

.cs-search__field--type {
	flex: 0 1 200px;
}
.cs-search__type {
	width: 100%;
	height: 48px;
	padding: 0 36px 0 14px;
	border: 0;
	background: #f8fafc;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #131313;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' stroke='%23131313' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.cs-search__submit {
	height: 48px;
	padding: 0 28px;
	background: #f35120;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease;
	white-space: nowrap;
}
.cs-search__submit:hover { background: #B82B00; }

/* Variant: bar — wszystko w jednym rzędzie */
.cs-search--bar {
	flex-wrap: nowrap;
}

/* Variant: inline — kompaktowa */
.cs-search--inline {
	padding: 4px;
	gap: 4px;
}
.cs-search--inline .cs-search__input,
.cs-search--inline .cs-search__type,
.cs-search--inline .cs-search__submit { height: 42px; }

/* Variant: compact — tylko pole + przycisk */
.cs-search--compact .cs-search__field--loc,
.cs-search--compact .cs-search__field--type { display: none; }

/* =========================================================
   Suggest dropdown
   ========================================================= */
.cs-search__suggest {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(15, 23, 42, .12);
	max-height: 480px;
	overflow-y: auto;
	z-index: 100;
	display: none;
}
.cs-search__suggest.is-open { display: block; }

.cs-suggest__loading,
.cs-suggest__empty {
	padding: 18px;
	text-align: center;
	color: #64748b;
	font-size: 14px;
}

.cs-suggest__item {
	border-bottom: 1px solid #f1f5f9;
	transition: background .12s ease;
}
.cs-suggest__item:last-child { border-bottom: 0; }
.cs-suggest__item:hover,
.cs-suggest__item.is-active { background: #f8fafc; }

.cs-suggest__item a {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	text-decoration: none;
	color: inherit;
}
.cs-suggest__thumb {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: #e2e8f0 center / cover;
	flex-shrink: 0;
}
.cs-suggest__thumb--ph {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}
.cs-suggest__body {
	flex: 1;
	min-width: 0;
}
.cs-suggest__title {
	font-size: 14px;
	font-weight: 600;
	color: #131313;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cs-suggest__meta {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 12px;
	color: #64748b;
	flex-wrap: wrap;
}
.cs-suggest__loc {
	color: #64748b;
	font-size: 12px;
}
.cs-suggest__seg {
	display: inline-block;
	padding: 2px 8px;
	background: #475569;
	color: #fff;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.cs-suggest__seg--sprzedaz   { background: #2563eb; }
.cs-suggest__seg--wynajem    { background: #16a34a; }
.cs-suggest__seg--serwis     { background: #ea580c; }
.cs-suggest__seg--kemping    { background: #0891b2; }
.cs-suggest__seg--producent  { background: #7c3aed; }
.cs-suggest__seg--sklep      { background: #db2777; }
.cs-suggest__seg--blog       { background: #475569; }

.cs-suggest__all {
	display: block;
	padding: 14px;
	background: #f8fafc;
	color: #1e3a5f !important;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	border-top: 1px solid #e2e8f0;
}
.cs-suggest__all:hover { background: #f1f5f9; color: #0f2742 !important; }

/* =========================================================
   Strona wyników [camper_search_results]
   ========================================================= */
.cs-results {
	max-width: 1100px;
	margin: 30px auto;
	font-family: 'Manrope', system-ui, sans-serif;
}
.cs-results__header {
	margin-bottom: 24px;
}
.cs-results__title {
	font-size: 24px;
	font-weight: 800;
	color: #131313;
	margin: 0 0 6px;
}
.cs-results__count {
	font-size: 14px;
	color: #64748b;
}
.cs-results__count strong { color: #131313; }

.cs-results__list {
	display: grid;
	gap: 20px;
}

.cs-result {
	display: flex;
	gap: 20px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: all .2s ease;
}
.cs-result:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
	transform: translateY(-1px);
}
.cs-result__thumb {
	width: 120px;
	height: 100px;
	border-radius: 8px;
	background: #e2e8f0 center / cover;
	flex-shrink: 0;
}
.cs-result__body {
	flex: 1;
	min-width: 0;
}
.cs-result__top {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}
.cs-result__seg {
	display: inline-block;
	padding: 3px 9px;
	background: #475569;
	color: #fff;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.cs-result__seg--sprzedaz   { background: #2563eb; }
.cs-result__seg--wynajem    { background: #16a34a; }
.cs-result__seg--serwis     { background: #ea580c; }
.cs-result__seg--kemping    { background: #0891b2; }
.cs-result__seg--producent  { background: #7c3aed; }
.cs-result__seg--sklep      { background: #db2777; }
.cs-result__seg--blog       { background: #475569; }
.cs-result__featured {
	display: inline-block;
	padding: 3px 9px;
	background: #fbbf24;
	color: #131313;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
}
.cs-result__title {
	font-size: 17px;
	font-weight: 700;
	color: #131313;
	margin: 0 0 6px;
}
.cs-result__loc {
	font-size: 13px;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 4px;
}

.cs-results__empty {
	text-align: center;
	padding: 60px 20px;
	color: #64748b;
}
.cs-results__empty svg { color: #cbd5e1; margin-bottom: 16px; }
.cs-results__empty p { font-size: 15px; margin: 0; }

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 720px) {
	.cs-search--bar {
		flex-wrap: wrap;
	}
	.cs-search__field,
	.cs-search__submit {
		flex: 1 1 100%;
	}
	.cs-search__field--type { flex: 1 1 100%; }

	.cs-result {
		flex-direction: column;
	}
	.cs-result__thumb {
		width: 100%;
		height: 160px;
	}
}

/* =========================================================
   v1.1 — Wariant FULL: na całą szerokość, kolejność typ→loc→fraza
   ========================================================= */
.cs-search-full {
	width: 100%;
	max-width: 100%;
	padding: 40px 24px;
	background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
	border-radius: 8px;
}
.cs-search-full__title {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	color: #131313;
	margin: 0 0 6px;
	text-align: center;
	letter-spacing: -.01em;
}
.cs-search-full__subtitle {
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: 16px;
	color: #64748b;
	text-align: center;
	margin: 0 0 28px;
}

.cs-search--full {
	max-width: 1100px;
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 6px;
	padding: 8px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 8px 30px rgba(15, 23, 42, .08);
}

.cs-search--full .cs-search__field {
	flex: 1 1 0;
	min-width: 0;
}
.cs-search--full .cs-search__input,
.cs-search--full .cs-search__type {
	height: 60px;
	font-size: 15px;
	background-color: #f8fafc;
	padding-left: 48px;
	border-radius: 8px;
	border: 1px solid transparent;
	transition: background-color .15s ease, border-color .15s ease;
}
.cs-search--full .cs-search__input:hover,
.cs-search--full .cs-search__type:hover {
	background-color: #f1f5f9;
}
.cs-search--full .cs-search__input:focus,
.cs-search--full .cs-search__type:focus {
	background-color: #fff;
	border-color: #1e3a5f;
	outline: none;
}
.cs-search--full .cs-search__field svg {
	left: 18px;
	color: #1e3a5f;
	width: 20px;
	height: 20px;
}

/* Select w wariancie full — chevron własny, większy */
.cs-search--full .cs-search__type {
	padding-right: 36px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23131313' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

/* Wskaźnik kroku 1/2/3 */
.cs-search__step {
	display: none;  /* zostawiamy na potem — jak chcesz duże kropki z numerami */
}

/* Big submit */
.cs-search__submit--big {
	flex: 0 0 auto;
	height: 60px;
	padding: 0 36px;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 8px;
}
.cs-search__submit--big svg { flex-shrink: 0; }

/* Mobile dla FULL */
@media (max-width: 900px) {
	.cs-search--full {
		flex-wrap: wrap;
		gap: 8px;
	}
	.cs-search--full .cs-search__field,
	.cs-search--full .cs-search__submit--big {
		flex: 1 1 100%;
	}
	.cs-search--full .cs-search__input,
	.cs-search--full .cs-search__type {
		border-left: 0;
		background: #f8fafc;
		border-radius: 8px;
		height: 52px;
	}
	.cs-search--full .cs-search__submit--big {
		height: 52px;
		justify-content: center;
	}
	.cs-search-full {
		padding: 28px 16px;
	}
}

/* =========================================================
   Wariant SIMPLE: tylko pole + przycisk
   ========================================================= */
.cs-search--simple {
	max-width: 500px;
	padding: 0;
	gap: 6px;
	background: transparent;
	border: 0;
	box-shadow: none;
}
.cs-search--simple .cs-search__input {
	height: 42px;
	font-size: 14px;
	padding-left: 38px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}
.cs-search--simple .cs-search__input:focus {
	background: #fff;
	border-color: #1e3a5f;
	outline: none;
}
.cs-search--simple .cs-search__field svg {
	left: 12px;
	width: 16px;
	height: 16px;
	color: #94a3b8;
}
.cs-search--simple .cs-search__submit {
	height: 42px;
	padding: 0 20px;
	font-size: 14px;
}
