/* Holiday Park & Campsite Finder Styles */

.hps-finder {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: #f8f9fa;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header */
.hps-finder-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 30px;
	color: white;
}

.hps-finder-header h2 {
	margin: 0 0 20px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

/* Search */
.hps-finder-search {
	position: relative;
	margin-bottom: 20px;
}

.hps-finder-search-input {
	width: 100%;
	padding: 14px 18px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	background: #fff;
	color: #333;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

.hps-finder-search-input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hps-finder-suggestions {
	position: absolute;
	z-index: 100;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: 300px;
	overflow-y: auto;
}

.hps-finder-suggestions button {
	display: block;
	width: 100%;
	padding: 12px 18px;
	border: 0;
	background: #fff;
	text-align: left;
	color: #333;
	cursor: pointer;
	transition: background 0.2s;
}

.hps-finder-suggestions button:hover {
	background: #f0f4ff;
}

/* Filters */
.hps-finder-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hps-finder-filter-btn {
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
}

.hps-finder-filter-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
}

.hps-finder-filter-btn.active {
	background: #fff;
	color: #667eea;
	border-color: #fff;
}

/* Workspace */
.hps-finder-workspace {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 24px;
	padding: 24px;
	min-height: 600px;
}

/* List pane */
.hps-finder-list-pane {
	display: flex;
	flex-direction: column;
}

.hps-finder-list {
	display: grid;
	gap: 14px;
	flex: 1;
	overflow-y: auto;
	padding-right: 12px;
	margin-right: -12px;
}

.hps-finder-list::-webkit-scrollbar {
	width: 6px;
}

.hps-finder-list::-webkit-scrollbar-track {
	background: transparent;
}

.hps-finder-list::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 3px;
}

.hps-finder-list::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.hps-finder-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 300px;
	color: #999;
	font-size: 16px;
}

/* Campsite Card */
.hps-campsite-card {
	padding: 16px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	border-left: 4px solid #667eea;
}

.hps-campsite-card:hover {
	border-color: #667eea;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
	transform: translateY(-2px);
}

.hps-campsite-card.active {
	border-color: #667eea;
	background: #f0f4ff;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.hps-campsite-card-name {
	font-size: 16px;
	font-weight: 700;
	color: #333;
	margin-bottom: 8px;
}

.hps-campsite-card-meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #666;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.hps-campsite-card-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.hps-campsite-card-meta span:before {
	content: '●';
	color: #667eea;
}

.hps-campsite-card-amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hps-campsite-amenity {
	display: inline-block;
	padding: 4px 8px;
	background: #f0f4ff;
	color: #667eea;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

/* Load more button */
.hps-finder-load-more {
	margin-top: 16px;
	padding: 12px 24px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	color: #667eea;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.hps-finder-load-more:hover {
	border-color: #667eea;
	background: #f0f4ff;
}

.hps-finder-load-more[hidden] {
	display: none;
}

/* Map pane */
.hps-finder-map-pane {
	position: sticky;
	top: 96px;
	height: 600px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	background: #f0f4ff;
}

.hps-finder-map {
	height: 100%;
	width: 100%;
}

/* Leaflet custom styles */
.hps-campsite-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #667eea;
	border: 3px solid #fff;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
	cursor: pointer;
	transition: all 0.2s;
}

.hps-campsite-marker:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.hps-campsite-marker.active {
	background: #764ba2;
	transform: scale(1.2);
}

/* Disclaimer */
.hps-finder-disclaimer {
	padding: 16px 24px;
	background: #fff9e6;
	color: #856404;
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
	border-top: 1px solid #ffe8a6;
}

/* Responsive */
@media (max-width: 1024px) {
	.hps-finder-workspace {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hps-finder-map-pane {
		position: relative;
		top: auto;
		height: 400px;
		min-height: 400px;
	}
}

@media (max-width: 768px) {
	.hps-finder-header {
		padding: 20px;
	}

	.hps-finder-header h2 {
		font-size: 20px;
		margin-bottom: 16px;
	}

	.hps-finder-workspace {
		padding: 16px;
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.hps-finder-map-pane {
		display: none;
	}

	.hps-finder-list {
		padding-right: 0;
		margin-right: 0;
	}

	.hps-campsite-card {
		padding: 12px;
	}

	.hps-campsite-card-name {
		font-size: 15px;
	}

	.hps-finder-filter-btn {
		font-size: 12px;
		padding: 8px 12px;
	}
}

@media (max-width: 480px) {
	.hps-finder {
		border-radius: 0;
	}

	.hps-finder-header {
		padding: 16px;
	}

	.hps-finder-header h2 {
		font-size: 18px;
		margin-bottom: 12px;
	}

	.hps-finder-filters {
		gap: 6px;
	}

	.hps-finder-filter-btn {
		font-size: 11px;
		padding: 6px 10px;
	}

	.hps-finder-search-input {
		font-size: 14px;
		padding: 12px 14px;
	}

	.hps-campsite-card-meta {
		font-size: 12px;
		gap: 12px;
	}
}
