/**
 * MGH gedeelde componenten — layout-reset, knoppen, sectiekoppen, labels, cards.
 * Pagina-specifieke CSS staat in brand-page.css, model-page.css, etc.
 *
 * @package Astra Child
 */

/* ================================================================
   Layout reset — full-width pagina-templates vs. Astra flex container
   ================================================================ */

/* Brand, model en cataloguspagina: alle .ast-container in .site-content */
body.page-template-page-template-brand .site-content .ast-container,
body.page-template-page-template-model .site-content .ast-container,
body.page-template-page-template-catalogus-spiegel .site-content .ast-container {
	display: block !important;
}

body.page-template-page-template-brand #primary,
body.page-template-page-template-brand .content-area,
body.page-template-page-template-model #primary,
body.page-template-page-template-model .content-area,
body.page-template-page-template-catalogus-spiegel #primary,
body.page-template-page-template-catalogus-spiegel .content-area {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.page-template-page-template-brand .ast-right-sidebar,
body.page-template-page-template-brand .ast-left-sidebar,
body.page-template-page-template-brand #secondary,
body.page-template-page-template-catalogus-spiegel .ast-right-sidebar,
body.page-template-page-template-catalogus-spiegel .ast-left-sidebar,
body.page-template-page-template-catalogus-spiegel #secondary {
	display: none !important;
}

/* Homepage: geen Astra-container — content staat op 100% breedte */
body.page-template-page-template-home .site-content > .ast-container,
body.page-template-page-template-full-width .site-content > .ast-container,
body.mgh-news-archive .site-content > .ast-container {
	display: block !important;
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.page-template-page-template-home #page,
body.page-template-page-template-home #content,
body.page-template-page-template-home .site-content,
body.page-template-page-template-full-width #page,
body.page-template-page-template-full-width #content,
body.mgh-news-archive #page,
body.mgh-news-archive #content {
	width: 100% !important;
	max-width: 100% !important;
}

body.page-template-page-template-home #primary,
body.page-template-page-template-home .content-area,
body.page-template-page-template-full-width #primary,
body.page-template-page-template-full-width .content-area,
body.mgh-news-archive #primary,
body.mgh-news-archive .content-area {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.page-template-page-template-home .ast-right-sidebar,
body.page-template-page-template-home .ast-left-sidebar,
body.page-template-page-template-home #secondary,
body.page-template-page-template-full-width .ast-right-sidebar,
body.page-template-page-template-full-width .ast-left-sidebar,
body.page-template-page-template-full-width #secondary,
body.mgh-news-single .ast-right-sidebar,
body.mgh-news-single .ast-left-sidebar,
body.mgh-news-single #secondary {
	display: none !important;
}

body.mgh-news-single .site-content .ast-container {
	display: block !important;
	width: 100%;
}

body.mgh-news-single #primary,
body.mgh-news-single .content-area {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 auto !important;
}

/* overflow-x: clip voorkomt horizontale scrollbalk bij full-bleed secties */
body.page-template-page-template-brand,
body.page-template-page-template-model,
body.page-template-page-template-catalogus-spiegel,
body.page-template-page-template-home,
body.page-template-page-template-full-width,
body.mgh-news-archive {
	overflow-x: clip;
}

/* Pagina-shell wrappers */
.mgh-brand-wrap,
.mgh-brand-main,
.mgh-model-wrap,
.mgh-model-main,
.mgh-home-wrap,
.mgh-home-main,
.mgh-full-width-wrap,
.mgh-full-width-wrap .site-main,
.mgh-news-wrap,
.mgh-news-main,
.mgh-news-single-wrap,
.mgh-news-single-main {
	width: 100%;
	padding: 0;
	margin: 0;
}

/* ================================================================
   Media & tekst (model + brand page)
   ================================================================ */
.mgh-model-media-text {
	padding: 24px 0 72px;
	background: var(--mgh-white);
}

.mgh-model-mt {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	grid-template-areas: "media content";
	gap: 40px;
	align-items: center;
	width: 100%;
}

.mgh-model-mt + .mgh-model-mt {
	margin-top: 56px;
}

.mgh-model-mt--right {
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	grid-template-areas: "content media";
}

.mgh-model-mt__media {
	grid-area: media;
	margin: 0;
	border-radius: 24px;
	overflow: hidden;
	background: var(--mgh-blue-200);
	aspect-ratio: 16 / 11;
}

.mgh-model-mt__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mgh-model-mt__content {
	grid-area: content;
	min-width: 0;
}

.mgh-model-mt__title {
	margin: 0 0 16px;
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	font-weight: 700;
	color: var(--mgh-neutral-900);
	line-height: 1.25;
}

.mgh-model-mt__text {
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--mgh-neutral-750);
	line-height: 1.65;
}

.mgh-model-mt__text p {
	margin: 0 0 1em;
}

.mgh-model-mt__text p:last-child {
	margin-bottom: 0;
}

.mgh-model-mt__btn {
	display: inline-flex;
	margin-top: 24px;
	background: #000000 !important;
	border-color: #000000 !important;
	color: #ffffff !important;
}

.mgh-model-mt__btn:hover,
.mgh-model-mt__btn:focus {
	background: #1a1a1a !important;
	border-color: #1a1a1a !important;
	color: #ffffff !important;
}

@media (max-width: 860px) {
	.mgh-model-mt,
	.mgh-model-mt--right {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"content";
		gap: 20px;
	}

	.mgh-model-mt + .mgh-model-mt {
		margin-top: 40px;
	}
}

/* ================================================================
   Onderhoud CTA
   ================================================================ */
.mgh-maintenance-cta {
	padding: 8px 0 56px;
	background: var(--mgh-white);
	text-align: center;
}

.mgh-maintenance-cta__inner {
	display: flex !important;
	justify-content: center;
	align-items: center;
	text-align: center;
}

body.page-template-page-template-model .site-content .mgh-maintenance-cta .ast-container,
body.page-template-page-template-brand .site-content .mgh-maintenance-cta .ast-container,
body.page-template-page-template-catalogus-spiegel .site-content .mgh-maintenance-cta .ast-container {
	display: flex !important;
	justify-content: center;
	align-items: center;
}

.mgh-maintenance-cta__btn {
	display: inline-flex;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* ================================================================
   Hoofdmenu — iconen (Figma)
   ================================================================ */
.main-header-menu > .menu-item.mgh-nav-item > .menu-link,
.main-header-menu > .menu-item.mgh-nav-item > a,
.main-header-menu > .menu-item.mgh-nav-item > .ast-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.mgh-nav-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	line-height: 0;
	color: inherit;
}

.mgh-nav-icon--nieuws {
	width: 17px;
	height: 18px;
}

.mgh-nav-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.mgh-nav-label {
	display: inline-block;
}

/* Dropdown "Meer": chevron vóór label, standaard Astra-toggle weg */
.main-header-menu > .menu-item.mgh-nav-item--meer.menu-item-has-children > .ast-menu-toggle,
.main-header-menu > .menu-item.mgh-nav-item--meer.menu-item-has-children > .menu-link .icon-arrow,
.main-header-menu > .menu-item.mgh-nav-item--meer.menu-item-has-children > .menu-link .ast-icon,
.main-header-menu > .menu-item.mgh-nav-item--meer.menu-item-has-children > .menu-link .dropdown-menu-toggle,
.main-header-menu > .menu-item.mgh-nav-item--meer.menu-item-has-children > .menu-link::after,
.main-header-menu > .menu-item.mgh-nav-item--meer.menu-item-has-children > a::after,
.ast-mobile-popup-drawer .main-header-menu > .menu-item.mgh-nav-item--meer.menu-item-has-children > .ast-menu-toggle {
	display: none !important;
}

.main-header-menu > .menu-item.mgh-nav-item--meer .mgh-nav-icon--meer svg {
	transition: transform 0.2s ease;
}

.main-header-menu > .menu-item.mgh-nav-item--meer.ast-submenu-expanded > .menu-link .mgh-nav-icon--meer svg,
.main-header-menu > .menu-item.mgh-nav-item--meer.focus > .menu-link .mgh-nav-icon--meer svg,
.main-header-menu > .menu-item.mgh-nav-item--meer.current-menu-ancestor > .menu-link .mgh-nav-icon--meer svg,
.ast-mobile-popup-drawer .main-header-menu > .menu-item.mgh-nav-item--meer.ast-submenu-expanded > .menu-link .mgh-nav-icon--meer svg {
	transform: rotate(180deg);
}

/* ================================================================
   Sectiekoppen
   ================================================================ */
.mgh-section-header {
	width: 100%;
	margin-bottom: 32px;
}

.mgh-section-title,
.mgh-model-section-title {
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	color: var(--mgh-text);
	margin: 0 0 8px;
}

.mgh-model-section-title {
	margin-bottom: 24px;
}

.mgh-section-sub {
	color: var(--mgh-text-light);
	margin: 0;
	font-size: 0.95rem;
}

/* ================================================================
   Knoppen
   ================================================================ */
.mgh-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border-radius: var(--mgh-radius);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
	white-space: nowrap;
}

.mgh-btn--primary {
	background: var(--mgh-primary);
	color: var(--mgh-white);
	border-color: var(--mgh-primary);
}

.mgh-btn--primary:hover,
.mgh-btn--primary:focus {
	background: var(--mgh-primary-dark);
	border-color: var(--mgh-primary-dark);
	color: var(--mgh-white);
}

.mgh-btn--outline {
	background: transparent;
	color: var(--mgh-white);
	border-color: var(--mgh-white);
}

.mgh-btn--outline:hover,
.mgh-btn--outline:focus {
	background: var(--mgh-white);
	color: var(--mgh-primary);
}

.mgh-btn--outline-dark {
	background: transparent;
	color: var(--mgh-primary);
	border-color: var(--mgh-primary);
}

.mgh-btn--outline-dark:hover,
.mgh-btn--outline-dark:focus {
	background: var(--mgh-primary);
	color: var(--mgh-white);
}

.mgh-btn--white {
	background: var(--mgh-white);
	color: var(--mgh-primary);
	border-color: var(--mgh-white);
}

.mgh-btn--white:hover,
.mgh-btn--white:focus {
	background: transparent;
	color: var(--mgh-white);
}

.mgh-btn--ghost {
	background: transparent;
	color: var(--mgh-primary);
	border-color: var(--mgh-border-muted);
}

.mgh-btn--ghost:hover,
.mgh-btn--ghost:focus {
	border-color: var(--mgh-primary);
}

.mgh-btn--block {
	display: flex;
	width: 100%;
	justify-content: center;
	margin-top: 16px;
}

.mgh-btn--dark {
	background: var(--mgh-neutral-900);
	color: var(--mgh-white);
	border-color: var(--mgh-neutral-900);
}

.mgh-btn--dark:hover,
.mgh-btn--dark:focus {
	background: var(--mgh-neutral-800);
	border-color: var(--mgh-neutral-800);
	color: var(--mgh-white);
}

/* ================================================================
   Labels (pills)
   ================================================================ */
.mgh-labels {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mgh-gap-sm);
}

.mgh-label {
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	border-radius: var(--mgh-radius-pill);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	border: 2px solid transparent;
}

/* Variant 1 — lichtblauw */
.mgh-label--soft,
.mgh-label {
	background: var(--mgh-label-soft-bg);
	color: var(--mgh-label-soft-text);
}

/* Variant 2 — zwart */
.mgh-label--dark {
	background: var(--mgh-neutral-900);
	color: var(--mgh-white);
}

/* Variant 3 — outline */
.mgh-label--outline {
	background: var(--mgh-white);
	color: var(--mgh-label-soft-text);
	border-color: var(--mgh-label-outline-border);
}

.mgh-label--outline:hover {
	border-color: var(--mgh-blue-450);
}

button.mgh-label {
	appearance: none;
	cursor: pointer;
	font-family: inherit;
}

.mgh-label.is-active,
button.mgh-label.is-active {
	background: var(--mgh-neutral-900);
	color: var(--mgh-white);
	border-color: var(--mgh-neutral-900);
}

button.mgh-label.is-active:hover,
button.mgh-label.is-active:focus {
	background: var(--mgh-neutral-800);
	border-color: var(--mgh-neutral-800);
	color: var(--mgh-white);
}

.mgh-label--success {
	background: #e6f7ec;
	color: var(--mgh-green);
	border-color: #b2dfcc;
}

.mgh-label--danger {
	background: #fdecea;
	color: var(--mgh-red);
	border-color: #f5c6c2;
}

/* ================================================================
   Cards — basis
   ================================================================ */
.mgh-card {
	border-radius: var(--mgh-radius-card);
	overflow: hidden;
	background: var(--mgh-white);
	box-shadow: var(--mgh-shadow);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mgh-card:hover {
	box-shadow: var(--mgh-shadow-hover);
}

.mgh-card__media {
	position: relative;
	overflow: hidden;
	background: var(--mgh-bg-light);
}

.mgh-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.mgh-card__media a {
	display: block;
	width: 100%;
	height: 100%;
}

.mgh-card__media-placeholder {
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: var(--mgh-bg-alt);
}

.mgh-card:hover .mgh-card__media img {
	transform: scale(1.04);
}

.mgh-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	background: var(--mgh-white);
	border-radius: var(--mgh-radius);
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--mgh-text);
	box-shadow: var(--mgh-shadow);
}

.mgh-card__body {
	padding: 16px 20px 20px;
}

.mgh-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--mgh-text);
	margin: 0 0 10px;
	line-height: 1.3;
}

.mgh-card__title a {
	color: inherit;
	text-decoration: none;
}

.mgh-card__title a:hover {
	color: var(--mgh-primary);
}

/* ================================================================
   Cards — product (verticaal, voertuig)
   ================================================================ */
.mgh-card--product {
	display: flex;
	flex-direction: column;
}

.mgh-card--product:hover {
	transform: translateY(-3px);
}

.mgh-card--product .mgh-card__media {
	aspect-ratio: 4 / 3;
}

.mgh-card--product .mgh-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 12px;
}

.mgh-card--product .mgh-labels {
	margin-bottom: 4px;
}

.mgh-card__pricing {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
}

.mgh-card__price-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 0.85rem;
}

.mgh-card__price-label {
	color: var(--mgh-text-light);
	font-weight: 600;
}

.mgh-card__price-was {
	color: var(--mgh-price-muted);
	text-decoration: line-through;
}

.mgh-card__price-now {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--mgh-neutral-900);
}

.mgh-card__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.mgh-card__cta {
	flex: 1 1 auto;
	justify-content: center;
	margin-top: 0;
	min-width: 0;
}

.mgh-card--product .mgh-btn {
	margin-top: 0;
}

.mgh-card__compare {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--mgh-text-light);
	cursor: pointer;
	flex: 0 0 auto;
	white-space: nowrap;
}

.mgh-card__compare input {
	width: 16px;
	height: 16px;
	accent-color: var(--mgh-filter-badge-bg);
	flex-shrink: 0;
}

.mgh-vehicle-card--sold {
	opacity: 0.82;
}

/* ================================================================
   Cards — promo split (Figma)
   ================================================================ */
.mgh-card--promo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 420px;
	border-radius: var(--mgh-radius-card);
	overflow: hidden;
	box-shadow: none;
	background: transparent;
}

.mgh-card--promo:hover {
	transform: none;
	box-shadow: none;
}

.mgh-card--promo:hover .mgh-card__media img {
	transform: none;
}

.mgh-card--promo.mgh-card--img-right {
	direction: rtl;
}

.mgh-card--promo.mgh-card--img-right > * {
	direction: ltr;
}

.mgh-card--promo .mgh-card__media {
	position: relative;
	min-height: 100%;
	background: var(--mgh-bg-light);
}

.mgh-card--promo .mgh-card__media img {
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	display: block;
}

.mgh-card--promo .mgh-card__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	text-align: left;
	padding: 3rem 3.5rem;
	background: var(--ps-bg, var(--mgh-yellow));
	color: var(--ps-text, var(--mgh-neutral-900));
}

.mgh-card--promo .mgh-card__eyebrow {
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: inherit;
	opacity: 1;
	margin: 0 0 0.5rem;
}

.mgh-card--promo .mgh-card__heading {
	font-size: clamp(1.75rem, 2.8vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 1rem;
	color: inherit;
}

.mgh-card--promo .mgh-card__text {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.55;
	margin: 0 0 0.75rem;
	color: inherit;
	opacity: 1;
	max-width: 42ch;
}

.mgh-card--promo .mgh-card__bullets {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.mgh-card--promo .mgh-card__bullets li {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	padding-left: 1.1em;
	position: relative;
	color: inherit;
}

.mgh-card--promo .mgh-card__bullets li::before {
	content: '•';
	position: absolute;
	left: 0;
	font-weight: 700;
}

.mgh-card--promo .mgh-promo-split__btn {
	align-self: flex-start;
	margin-top: 0;
	padding: 12px 28px;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	background: var(--ps-btn-bg, var(--mgh-neutral-900));
	color: var(--ps-btn-color, var(--mgh-white)) !important;
	border-color: var(--ps-btn-bg, var(--mgh-neutral-900));
	text-decoration: none !important;
}

.mgh-card--promo .mgh-promo-split__btn:hover,
.mgh-card--promo .mgh-promo-split__btn:focus {
	background: var(--mgh-neutral-750);
	border-color: var(--mgh-neutral-750);
	color: var(--mgh-white) !important;
	text-decoration: none !important;
}

@media screen and (max-width: 768px) {
	.mgh-card--promo {
		grid-template-columns: 1fr;
		direction: ltr;
		min-height: 0;
	}

	.mgh-card--promo .mgh-card__media img {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.mgh-card--promo .mgh-card__content {
		padding: 2rem 1.5rem;
	}

	.mgh-card--promo .mgh-card__text {
		max-width: none;
	}

	.mgh-card--product {
		border-radius: 14px;
		overflow: hidden;
		background: #fff;
		box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
	}

	.mgh-card--product .mgh-card__actions {
		flex-wrap: wrap;
		gap: 0.65rem 0.85rem;
	}

	.mgh-card--product .mgh-card__cta,
	.mgh-card--product .mgh-btn--dark {
		width: 100%;
		justify-content: center;
		border-radius: 10px;
		padding: 0.8rem 1rem;
		font-weight: 700;
	}

	.mgh-card--product .mgh-card__compare {
		width: 100%;
		justify-content: flex-start;
	}

	.mgh-btn--dark,
	.mgh-btn--primary {
		border-radius: 10px;
	}
}

/* ================================================================
   Filter sidebar (occasions / Autotelex)
   ================================================================ */
.mgh-filters {
	background: var(--mgh-filter-panel-bg);
	border: 1px solid var(--mgh-filter-border);
	border-radius: var(--mgh-radius-card);
	box-shadow: var(--mgh-shadow);
	padding: 20px 16px 24px;
}

.mgh-filters__title {
	margin: 0 0 16px;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--mgh-neutral-900);
	line-height: 1.2;
}

.mgh-filters__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mgh-filters__vehicle-search {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 4px;
}

.mgh-filters__vehicle-search-label {
	margin: 0 0 16px;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--mgh-neutral-900);
	line-height: 1.2;
}

.mgh-filters__vehicle-search .mgh-filters__title--filters {
	margin-top: 12px;
	margin-bottom: 16px;
}

.mgh-filters__vehicle-search-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mgh-filter-border);
	border-radius: var(--mgh-filter-radius);
	font: inherit;
	font-size: 0.88rem;
	color: var(--mgh-neutral-900);
	background: var(--mgh-white);
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.mgh-filters__vehicle-search-input:focus {
	outline: none;
	border-color: var(--mgh-filter-border-active);
	box-shadow: 0 0 0 1px var(--mgh-filter-border-active);
}

.mgh-filters__vehicle-search-scope {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin: 0;
	padding: 0;
	border: 0;
}

.mgh-filters__vehicle-search-scope-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: var(--mgh-neutral-700);
	cursor: pointer;
}

.mgh-filters__vehicle-search-scope-option input {
	margin: 0;
	accent-color: var(--mgh-primary, #0b1f3a);
}

.mgh-filters__primary,
.mgh-filters__more {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

@media screen and (max-width: 768px) {
	.mgh-filters__primary,
	.mgh-filters.is-more-open .mgh-filters__more {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.mgh-filter__details {
		overflow: visible;
	}
}

.mgh-filters__more {
	display: none;
}

.mgh-filters.is-more-open .mgh-filters__more {
	display: flex;
}

.mgh-filter {
	margin: 0;
}

.mgh-filter__details {
	border: 1px solid var(--mgh-filter-border);
	border-radius: var(--mgh-filter-radius);
	background: var(--mgh-white);
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mgh-filter__details[open],
.mgh-filter__details.is-active {
	border-color: var(--mgh-filter-border-active);
	box-shadow: 0 0 0 1px var(--mgh-filter-border-active);
}

.mgh-filter__trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 14px;
	list-style: none;
	cursor: pointer;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--mgh-neutral-900);
	background: var(--mgh-white);
}

.mgh-filter__trigger::-webkit-details-marker {
	display: none;
}

.mgh-filter__label {
	flex: 1;
	text-align: left;
}

.mgh-filter__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--mgh-radius-pill);
	background: var(--mgh-filter-badge-bg);
	color: var(--mgh-white);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
}

.mgh-filter__badge:empty,
.mgh-filter__badge[hidden] {
	display: none;
}

.mgh-filter__chevron {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--mgh-neutral-900);
	border-bottom: 2px solid var(--mgh-neutral-900);
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform 0.18s ease;
}

.mgh-filter__details[open] .mgh-filter__chevron {
	transform: rotate(-135deg);
	margin-top: 3px;
}

.mgh-filter__panel {
	padding: 0 14px 14px;
	border-top: 1px solid var(--mgh-filter-border);
}

.mgh-filter__search-wrap {
	padding-top: 12px;
}

.mgh-filter__search {
	width: 100%;
	padding: 10px 12px 10px 36px;
	border: 1px solid var(--mgh-filter-border-active);
	border-radius: var(--mgh-filter-radius);
	font-size: 0.88rem;
	background: var(--mgh-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2353608b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 12px center;
}

.mgh-filter__search:focus {
	outline: 2px solid var(--mgh-blue-400);
	outline-offset: 1px;
}

.mgh-filter__native {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mgh-filter__list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	max-height: 280px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.mgh-filter__option {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 2px;
	border: none;
	background: transparent;
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--mgh-neutral-900);
	text-align: left;
	cursor: pointer;
	font-family: inherit;
}

.mgh-filter__option:hover {
	background: var(--mgh-label-soft-bg);
	color: var(--mgh-label-soft-text);
}

.mgh-filter__option-label {
	flex: 1;
	line-height: 1.35;
}

.mgh-filter__checkbox {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 2px solid var(--mgh-neutral-400);
	border-radius: 3px;
	background: var(--mgh-white);
	position: relative;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mgh-filter__option--single .mgh-filter__checkbox {
	border-radius: 50%;
}

.mgh-filter__option.is-selected .mgh-filter__checkbox {
	background: var(--mgh-neutral-900);
	border-color: var(--mgh-neutral-900);
}

.mgh-filter__option.is-selected .mgh-filter__checkbox::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border-right: 2px solid var(--mgh-white);
	border-bottom: 2px solid var(--mgh-white);
	transform: rotate(45deg);
}

.mgh-filter__option.is-selected {
	font-weight: 500;
}

.mgh-filter__option.is-selected::after {
	content: none;
}

.mgh-filter__option-count {
	color: var(--mgh-text-light);
	font-weight: 400;
	font-size: 0.85rem;
	margin-left: auto;
	margin-right: 8px;
}

.mgh-filter__price-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 12px;
}

.mgh-filter__price-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--mgh-text-light);
}

.mgh-filter__price-input {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--mgh-filter-border-active);
	border-radius: var(--mgh-filter-radius);
	background: var(--mgh-white);
}

.mgh-filter__price-input span {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--mgh-neutral-900);
}

.mgh-filter__price-input select {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--mgh-neutral-900);
	padding: 0;
	min-width: 0;
	appearance: none;
	cursor: pointer;
}

.mgh-filter__panel-footer {
	padding-top: 12px;
}

.mgh-filter__panel-actions {
	display: flex;
	gap: 8px;
}

.mgh-filter__panel-actions .mgh-btn {
	flex: 1;
	font-size: 0.88rem;
	font-weight: 600;
	border-radius: var(--mgh-filter-radius);
}

.mgh-filter__panel-actions .mgh-filter__clear {
	background: var(--mgh-white);
	border: 1px solid var(--mgh-filter-border);
	color: var(--mgh-neutral-900);
}

.mgh-filter__panel-actions .mgh-filter__clear:hover,
.mgh-filter__panel-actions .mgh-filter__clear:focus {
	background: var(--mgh-neutral-200);
	border-color: var(--mgh-neutral-900);
	color: var(--mgh-neutral-900);
}

.mgh-filter__panel-actions .mgh-filter__apply {
	background: #000000;
	border: 1px solid #000000;
	color: var(--mgh-white);
}

.mgh-filter__panel-actions .mgh-filter__apply:hover,
.mgh-filter__panel-actions .mgh-filter__apply:focus {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: var(--mgh-white);
}

.mgh-filter__check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
}

.mgh-filter__check input {
	width: 18px;
	height: 18px;
	accent-color: var(--mgh-filter-badge-bg);
}

.mgh-filters__footer {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--mgh-filter-border);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mgh-filters__more-toggle {
	align-self: flex-start;
	padding: 0;
	border: none;
	background: none;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--mgh-neutral-900);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mgh-filters__results-count {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--mgh-filter-results-color);
}

.mgh-btn--filter-reset {
	background: var(--mgh-filter-reset-bg) !important;
	border-color: var(--mgh-filter-reset-bg) !important;
	color: var(--mgh-white) !important;
	border-radius: var(--mgh-filter-radius);
	padding: 14px 20px;
	font-size: 0.92rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
}

.mgh-btn--filter-reset:hover,
.mgh-btn--filter-reset:focus {
	background: var(--mgh-blue-650) !important;
	border-color: var(--mgh-blue-650) !important;
	color: var(--mgh-white) !important;
}

.mgh-filter.is-hidden {
	display: none;
}
