/* WSE Destinations & Customer — search */

.wse-dc-search-form {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 16px 18px;
}

.wse-dc-field {
	margin-bottom: 14px;
}

.wse-dc-field > label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.wse-dc-search-form select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
}

.wse-dc-checks {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 280px;
	overflow-y: auto;
}

.wse-dc-check {
	font-weight: 400;
	line-height: 1.5;
}

.wse-dc-submit button {
	width: 100%;
	cursor: pointer;
	border: 0;
	border-radius: 6px;
	padding: 11px 18px;
	font-weight: 600;
	font-size: 1em;
	color: #fff;
	background: #2271b1;
}

.wse-dc-submit button:hover {
	background: #135e96;
}

/* Compact (homepage) — horizontal row */
.wse-dc-search-form.wse-dc-compact {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.wse-dc-compact .wse-dc-field {
	margin-bottom: 0;
	flex: 1 1 200px;
}

.wse-dc-compact .wse-dc-submit {
	flex: 0 0 auto;
}

.wse-dc-compact .wse-dc-submit button {
	width: auto;
}

/* Results layout */
.wse-dc-results-layout {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

.wse-dc-sidebar {
	flex: 0 0 260px;
	position: sticky;
	top: 20px;
}

.wse-dc-results {
	flex: 1 1 auto;
	min-width: 0;
}

.wse-dc-count {
	font-weight: 600;
	margin: 0 0 14px;
}

.wse-dc-prompt,
.wse-dc-none {
	color: #666;
	font-style: italic;
}

.wse-dc-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 24px 0 0;
}

.wse-dc-pagination a,
.wse-dc-pagination span {
	display: inline-block;
	padding: 7px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-decoration: none;
}

.wse-dc-pagination .current {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

@media (max-width: 782px) {
	.wse-dc-results-layout {
		flex-direction: column;
	}
	.wse-dc-sidebar {
		flex-basis: auto;
		width: 100%;
		position: static;
	}
}

/* Results grid — tile like the category pages (overrides WC float widths) */
.wse-dc-results .woocommerce {
	margin: 0;
}
.wse-dc-results ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 26px 22px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
/* kill the theme/WC clearfix pseudo-elements that become phantom grid items */
.wse-dc-results ul.products::before,
.wse-dc-results ul.products::after {
	content: none !important;
	display: none !important;
}
.wse-dc-results ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
}
.wse-dc-results ul.products li.product a img {
	width: 100%;
	height: auto;
	display: block;
	margin: 0 0 10px;
	border-radius: 8px;
}
.wse-dc-results ul.products li.product .woocommerce-loop-product__title,
.wse-dc-results ul.products li.product h2,
.wse-dc-results ul.products li.product h3 {
	font-size: 1rem !important;
	line-height: 1.35 !important;
	font-weight: 600 !important;
	margin: 0 !important;
	padding: 4px 0 2px !important;
}
.wse-dc-results ul.products li.product .price {
	font-size: 0.95rem !important;
	display: block;
	margin: 2px 0 8px;
}
.wse-dc-results ul.products li.product .button,
.wse-dc-results ul.products li.product .added_to_cart {
	font-size: 0.9rem;
}
