/* LLDT Groups Plugin - Public Styles */

/* --- Block frontend shared styles (moved from blocks/*\/style.css) --- */


/**
 * Frontend Styles for Group Query Block
 */

/* Block Container */
.lldt-group-query-block {
	margin: 40px 0;
}

/* Toolbar (Search + Filters) */
.lldt-query-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
	align-items: center;
}

/* Search Form */
.lldt-groups-search-form {
	flex: 1;
	min-width: 280px;
}

.lldt-search-wrapper {
	display: flex;
	gap: 0;
	border: 2px solid #ddd;
	border-radius: 6px;
	background: white;
	overflow: hidden;
	transition: border-color 0.3s;
}

.lldt-search-wrapper:focus-within {
	border-color: #007cba;
}

.lldt-search-input {
	flex: 1;
	padding: 12px 15px;
	border: none;
	font-size: 15px;
	outline: none;
}

.lldt-search-submit {
	padding: 12px 20px;
	background: #007cba;
	border: none;
	color: white;
	cursor: pointer;
	transition: background 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lldt-search-submit:hover {
	background: #005a87;
}

.lldt-search-submit svg {
	width: 20px;
	height: 20px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Category Filters */
.lldt-category-filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.lldt-filter-link {
	padding: 10px 20px;
	background: white;
	border: 2px solid #ddd;
	border-radius: 20px;
	text-decoration: none;
	color: #333;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s;
}

.lldt-filter-link:hover {
	border-color: #007cba;
	color: #007cba;
}

.lldt-filter-link.active {
	background: #007cba;
	border-color: #007cba;
	color: white;
}

/* Search Results Info */
.lldt-search-results-info {
	background: #e7f5fe;
	border-left: 4px solid #007cba;
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.lldt-search-results-info p {
	margin: 0;
	color: #333;
}

.lldt-clear-search {
	margin-left: 15px;
	color: #007cba;
	text-decoration: underline;
}

.lldt-clear-search:hover {
	color: #005a87;
}

/* Groups Grid - Base */
.lldt-groups-grid {
	display: grid;
	gap: 25px;
}

/* Layout: Grid */
.lldt-layout-grid .lldt-groups-grid {
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Layout: Two Column */
.lldt-layout-two-column .lldt-groups-grid {
	grid-template-columns: repeat(2, 1fr);
	align-items: start;
}

/* Layout: Masonry */
.lldt-layout-masonry .lldt-groups-grid {
	column-count: 2;
	column-gap: 25px;
}

.lldt-layout-masonry .lldt-group-card {
	break-inside: avoid;
	margin-bottom: 25px;
}

/* Layout: List */
.lldt-layout-list .lldt-groups-grid {
	grid-template-columns: 1fr;
	max-width: 800px;
	margin: 0 auto;
}

/* Group Card */
.lldt-group-card {
	background: white;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	height: fit-content;
	display: flex;
	flex-direction: column;
	padding: 32px;
}

.lldt-group-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.lldt-group-title {
	margin: 0 0 10px 0;
	/*font-size: 1.2em;*/
	font-size: 35px;
	font-weight: 600;
	color: #222;
	line-height: 1.4;
}

.lldt-group-dates {
	font-size: 25px;
	font-weight: 400;
}

.lldt-group-price {
	font-size: 20px;
	font-weight: 400;
}

.lldt-group-labels span {
	border-radius: 10px;
	color: white;
	background-color: #00A3D9;
	padding: 0.5rem 0.75rem;
	text-transform: uppercase;
	box-sizing: border-box;
	margin-bottom: 20px;
	font-size: 16px;
	line-height: 1.8;
	text-align: center;
}

.lldt-group-image {
	box-sizing: border-box;
	height: auto;
	max-width: 100%;
	vertical-align: bottom;
	width: 100%;
}

.lldt-group-cta {
	background-color: #204d8a !important;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 18px;
	padding: 20px 40px;
	border-radius: 5px;
	display: inline-block;
	line-height: 1em;
	transition: all 0.3s;
}

/* No Groups */
.lldt-no-groups {
	text-align: center;
	padding: 60px 20px;
	background: #f9f9f9;
	border-radius: 8px;
	grid-column: 1 / -1;
}

.lldt-no-groups p {
	margin: 0 0 15px 0;
	font-size: 16px;
	color: #666;
}

.lldt-no-groups a {
	color: #007cba;
	text-decoration: underline;
}

.lldt-no-groups a:hover {
	color: #005a87;
}

/* Pagination */
.lldt-pagination {
	margin-top: 40px;
	text-align: center;
}

.lldt-pagination .page-numbers {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 8px;
}

.lldt-pagination .page-numbers li {
	margin: 0;
}

.lldt-pagination a,
.lldt-pagination span {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	transition: all 0.3s;
	font-weight: 500;
}

.lldt-pagination a:hover {
	background: #007cba;
	color: white;
	border-color: #007cba;
}

.lldt-pagination .current {
	background: #007cba;
	color: white;
	border-color: #007cba;
}

.lldt-pagination .dots {
	border: none;
	pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
	.lldt-query-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.lldt-groups-search-form {
		width: 100%;
	}

	.lldt-category-filters {
		width: 100%;
		justify-content: center;
	}

	.lldt-layout-grid .lldt-groups-grid,
	.lldt-layout-two-column .lldt-groups-grid,
	.lldt-layout-masonry .lldt-groups-grid {
		grid-template-columns: 1fr;
		column-count: 1;
	}

	.lldt-card-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.lldt-layout-grid .lldt-groups-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

/* --- End moved styles --- */