/* Museu Terra — filtro por taxonomias + buscador a medida */

.mf-control {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.mf-screen-reader {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Desplegables */
.mf-control .mf-select {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 44px 12px 16px;
	border: 1px solid #000;
	border-radius: 0;
	background-color: #f6f5ee;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 20px;
	color: #000;
	font-family: 'Diatype Medium', Helvetica, Arial, Lucida, sans-serif;
	font-size: 18px;
	line-height: 1.3;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	text-overflow: ellipsis;
}

.mf-control .mf-select:hover,
.mf-control .mf-select:focus {
	border-color: #000;
	outline: 2px solid #f5c4df;
	outline-offset: 0;
}

.mf-control .mf-select option {
	background: #f6f5ee;
	color: #000;
	text-transform: uppercase;
}

/* Falso select (combobox con buscador): el <select> queda oculto como origen del valor */
.mf-control .mf-select.is-enhanced {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
}

.mf-combo {
	position: relative;
	width: 100%;
	font-family: 'Diatype Medium', Helvetica, Arial, Lucida, sans-serif;
}

.mf-combo__head {
	position: relative;
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	border: 1px solid #000;
	border-radius: 0;
	background: #f6f5ee;
	cursor: pointer;
}

.mf-combo:hover .mf-combo__head,
.mf-combo.is-open .mf-combo__head {
	border-color: #000;
}

.mf-combo .mf-combo__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: 0;
	padding: 8px 4px 8px 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	color: #000;
	font-family: inherit;
	font-size: 16px;
	line-height: 22px;
	text-transform: uppercase;
	cursor: pointer;
}

.mf-combo .mf-combo__input::placeholder {
	color: #000;
	opacity: 1;
}

.mf-combo.is-open .mf-combo__input {
	cursor: text;
}

.mf-combo .mf-combo__toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 12px;
	border: 0;
	background: transparent;
	color: #000;
	cursor: pointer;
}

.mf-combo .mf-combo__toggle svg {
	transition: transform 0.15s ease;
}

.mf-combo.is-open .mf-combo__toggle svg {
	transform: rotate(180deg);
}

.mf-combo .mf-combo__list {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 999;
	box-sizing: border-box;
	width: 100%;
	max-height: 250px;
	margin: -1px 0 0;
	padding: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #000;
	border-radius: 0;
	background: #f9e888;
	color: #000;
	font-size: 16px;
	list-style: none;
}

.mf-combo .mf-combo__list[hidden] {
	display: none;
}

.mf-combo .mf-combo__option {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 0.5em 0.5em 0.5em calc(0.5em + var(--mf-depth, 0px));
	font-size: 16px;
	line-height: 22px;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

.mf-combo .mf-combo__option--depth-1 { --mf-depth: 16px; }
.mf-combo .mf-combo__option--depth-2 { --mf-depth: 32px; }
.mf-combo .mf-combo__option--depth-3 { --mf-depth: 48px; }

.mf-combo .mf-combo__option.is-selected {
	background: rgba(245, 196, 223, 0.8);
}

.mf-combo .mf-combo__option.is-active,
.mf-combo .mf-combo__option.is-active.is-selected {
	background: #f5c4df;
	color: #000;
}

.mf-combo .mf-combo__count {
	flex: 0 0 auto;
}

/* Contenedores elevados mientras hay un desplegable abierto (ver museu-filter.js) */
.mf-raise {
	z-index: 9999 !important;
}

.mf-raise.mf-raise--pos {
	position: relative !important;
}

/* Buscador */
.mf-control--search {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #000;
}

.mf-control--search .mf-search__icon {
	display: inline-flex;
	flex: 0 0 auto;
	margin-right: 8px;
	color: #000;
}

.mf-control--search .mf-search__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 8px 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #000;
	font-family: 'Diatype Medium', Helvetica, Arial, Lucida, sans-serif;
	font-size: 18px;
	text-transform: uppercase;
	-webkit-appearance: none;
	appearance: none;
}

.mf-control--search .mf-search__input:focus {
	outline: none;
}

.mf-control--search .mf-search__input::-webkit-search-cancel-button {
	display: none;
}

.mf-control--search .mf-search__clear {
	flex: 0 0 auto;
	padding: 0 6px;
	border: 0;
	background: transparent;
	color: #000;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.mf-control--search .mf-search__clear[hidden] {
	display: none;
}

/* Resultados */
.mf-results {
	position: relative;
	transition: opacity 0.2s ease;
}

.mf-results.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

.mf-results .mf-no-results {
	padding: 2em 0;
	font-family: 'Diatype Medium', Helvetica, Arial, Lucida, sans-serif;
	font-size: 20px;
}

/* La regla antigua del CSS de Divi ocultaba cualquier <ul> de una fila concreta. */
.mf-results .pagination ul.page-numbers {
	display: flex;
}
