/**
 * Locaties Grid and Filter Sidebar Styles
 *
 * @package    KLS_Child
 * @author     Klasse
 * @since      1.0.0
 */

/* ============================================
   Main Wrapper
   ============================================ */
.mea-locations-wrapper {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* ============================================
   Filter Toggle Button
   ============================================ */
.filter-toggle-container {
	margin-bottom: 20px;
}

.filter-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.filter-toggle-btn:hover {
	background-color: #005177;
}

.filter-toggle-btn i {
	font-size: 14px;
}

/* ============================================
   Filter Sidebar
   ============================================ */
.filter-sidebar {
	position: fixed;
	top: 0;
	left: -350px;
	width: 350px;
	height: 100vh;
	background-color: #f7f7f7;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	overflow-y: auto;
	transition: left 0.3s ease;
	z-index: 1000;
}

.filter-sidebar.active {
	left: 0;
}

.filter-sidebar-inner {
	padding: 30px 20px;
}

.filter-sidebar h3 {
	margin: 0 0 20px 0;
	font-size: 24px;
	font-weight: 700;
	color: #333;
}

.filter-sidebar h4 {
	margin: 20px 0 12px 0;
	font-size: 16px;
	font-weight: 600;
	color: #555;
}

/* Active Filters */
.active-filters {
	margin-bottom: 20px;
	padding: 15px;
	background-color: #fff;
	border-radius: 4px;
	border-left: 4px solid #0073aa;
}

.active-filters h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.active-filter {
	display: inline-block;
	margin: 4px;
	padding: 6px 12px;
	background-color: #0073aa;
	color: #fff;
	border-radius: 20px;
	font-size: 13px;
}

/* Filter Form */
.location-filter-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.filter-group {
	padding: 15px;
	background-color: #fff;
	border-radius: 4px;
}

.filter-group label {
	display: flex;
	align-items: center;
	padding: 8px 0;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	transition: color 0.2s ease;
}

.filter-group label:hover {
	color: #0073aa;
}

.filter-group input[type="radio"],
.filter-group input[type="checkbox"] {
	margin-right: 10px;
	cursor: pointer;
}

/* Filter Submit Button */
.filter-submit-btn {
	padding: 12px 24px;
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.filter-submit-btn:hover {
	background-color: #005177;
}

/* ============================================
   Locations Grid
   ============================================ */
.locations-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 20px;
}

/* ============================================
   Location Card
   ============================================ */
.location-card {
	background-color: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.location-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card Thumbnail */
.location-card-thumbnail {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.location-card-thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.location-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.location-card:hover .location-card-image {
	transform: scale(1.05);
}

/* Card Content */
.location-card-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.location-card-title {
	margin: 0 0 12px 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.location-card-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.location-card-title a:hover {
	color: #0073aa;
}

/* Card Address */
.location-card-address {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #666;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.location-card-address i {
	color: #0073aa;
	margin-top: 2px;
}

/* Card Types */
.location-card-types {
	margin: 0 0 16px 0;
	padding-top: 10px;
	border-top: 1px solid #eee;
	font-size: 13px;
	color: #888;
	display: flex;
	align-items: center;
	gap: 8px;
}

.location-card-types i {
	color: #0073aa;
}

/* Card Button */
.location-card-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background-color: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.3s ease;
	margin-top: auto;
	align-self: flex-start;
}

.location-card-btn:hover {
	background-color: #005177;
}

.location-card-btn i {
	font-size: 12px;
}

/* ============================================
   Location Slider (Swiper)
   ============================================ */
.mea-location-slider {
	margin: 30px 0;
}

.mea-location-slider .location-card {
	height: 100%;
}

/* ============================================
   Location Item (Meta Display)
   ============================================ */
.location-address,
.location-email,
.location-phone,
.location-website {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #333;
}

.location-email,
.location-phone,
.location-website {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.2s ease;
}

.location-email:hover,
.location-phone:hover,
.location-website:hover {
	color: #005177;
	text-decoration: underline;
}

.location-address i,
.location-email i,
.location-phone i,
.location-website i {
	color: #0073aa;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
	.locations-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.filter-sidebar {
		width: 300px;
		left: -300px;
	}
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
	.mea-locations-wrapper {
		padding: 15px;
	}

	.locations-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.filter-sidebar {
		width: 100%;
		left: -100%;
	}

	.filter-sidebar.active {
		left: 0;
	}

	.filter-toggle-btn {
		width: 100%;
		justify-content: center;
		padding: 14px 20px;
	}

	.location-card-thumbnail {
		height: 180px;
	}

	.location-card-title {
		font-size: 18px;
	}

	.location-card-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ============================================
   Overlay for Mobile Filter
   ============================================ */
.filter-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
	transition: opacity 0.3s ease;
}

.filter-overlay.active {
	display: block;
}

/* ============================================
   No Results Message
   ============================================ */
.locations-grid > p {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	font-size: 16px;
	color: #666;
}
