/* List/map views: the map section stays hidden until the switch activates it. */
.dus-view--map:not(.is-active),
.dus-view--list.is-hidden,
.dus-item[hidden] {
	display: none !important;
}

/* ---------- Filter ---------- */

.viada-filter {
	--viada-accent: #d60131;
	--viada-line: #e3e3e3;
	--viada-muted: #5c5c5c;
	display: flex;
	flex-direction: column;
	row-gap: 1.5rem;
	width: 100%;
}

.viada-filter__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	column-gap: 3rem;
	row-gap: 1.5rem;
}

.viada-filter__group {
	min-width: 0;
}

/* Map-only groups (Produkti) show only inside the map's drawer. */
.viada-filter__group[data-scope="map"] {
	display: none;
}

.viada-map__drawer .viada-filter__group[data-scope="map"] {
	display: block;
}

.viada-filter__title {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 500;
}

.viada-filter__options {
	columns: 2;
	column-gap: 1.5rem;
}

.viada-filter__option {
	display: flex;
	align-items: center;
	column-gap: 0.625rem;
	margin: 0;
	padding-block: 0.25rem;
	break-inside: avoid;
	font-size: 0.9375rem;
	line-height: 1.3;
	cursor: pointer;
}

.viada-filter__option input {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	accent-color: var(--viada-accent);
	cursor: pointer;
}

.viada-filter__option img {
	display: block;
	flex-shrink: 0;
	width: auto;
	height: 1rem;
}

.viada-filter__search {
	width: 100%;
	max-width: 21rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--viada-line);
	border-radius: 0.25rem;
	background: #fff;
	font: inherit;
	font-size: 0.9375rem;
}

.viada-filter__search:focus {
	outline: none;
	border-color: var(--viada-muted);
}

.viada-filter__empty {
	margin: 0;
	color: var(--viada-muted);
}

/* ---------- Switch ---------- */

.viada-switch {
	display: inline-flex;
	align-self: center;
	border: 1px solid var(--viada-line, #e3e3e3);
	border-radius: 999px;
	padding: 0.1875rem;
	background: #fff;
}

.viada-switch__button {
	padding: 0.4375rem 1.125rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.viada-switch__button[aria-pressed="true"] {
	background: #d60131;
	color: #fff;
}

/* Phones: slightly smaller option text. */
@media (max-width: 40rem) {
	.viada-filter__options {
		column-gap: 1rem;
	}

	.viada-filter__option {
		font-size: 0.875rem;
	}
}
