/* Tabs propis: no depenen de Fusion Tabs ni del seu JavaScript. */
.castellers-tabs {
	--castellers-tabs-accent: #00b09a;
	--castellers-tabs-border: #d9d9d9;
	margin: 30px 0;
}

.castellers-cercador-accordion,
.castellers-cercador-accordion .fusion-panel,
.castellers-cercador-accordion .panel-heading,
.castellers-cercador-accordion .fusion-toggle {
	border: 0 !important;
	box-shadow: none !important;
}

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

.castellers-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 1px solid var(--castellers-tabs-border);
}

.castellers-tabs__label {
	flex: 1 1 0;
	min-width: 150px;
	padding: 14px 18px;
	border: 1px solid transparent;
	border-bottom: 0;
	color: #555;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.castellers-tabs__label:hover {
	color: var(--castellers-tabs-accent);
	background-color: #f7f7f7;
}

.castellers-tabs__input:focus-visible ~ .castellers-tabs__nav {
	outline: 2px solid var(--castellers-tabs-accent);
	outline-offset: 3px;
}

.castellers-tabs__input:nth-of-type(1):checked ~ .castellers-tabs__nav .castellers-tabs__label:nth-of-type(1),
.castellers-tabs__input:nth-of-type(2):checked ~ .castellers-tabs__nav .castellers-tabs__label:nth-of-type(2),
.castellers-tabs__input:nth-of-type(3):checked ~ .castellers-tabs__nav .castellers-tabs__label:nth-of-type(3) {
	border-color: var(--castellers-tabs-border);
	border-bottom-color: #fff;
	color: var(--castellers-tabs-accent);
	background: #fff;
	margin-bottom: -1px;
}

.castellers-tabs__panels {
	padding: 24px 0 0;
}

.castellers-tabs__panel {
	display: none;
}

.castellers-tabs__input:nth-of-type(1):checked ~ .castellers-tabs__panels .castellers-tabs__panel:nth-of-type(1),
.castellers-tabs__input:nth-of-type(2):checked ~ .castellers-tabs__panels .castellers-tabs__panel:nth-of-type(2),
.castellers-tabs__input:nth-of-type(3):checked ~ .castellers-tabs__panels .castellers-tabs__panel:nth-of-type(3) {
	display: block;
}

@media (max-width: 600px) {
	.castellers-tabs__nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.castellers-tabs__label {
		flex: 0 0 auto;
		min-width: 0;
		padding: 12px 14px;
	}
}
