/* JUWAL Equipment */

.je-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Siatka kafelków */
.je-grid {
	display: grid;
	grid-template-columns: repeat(var(--je-cols, 3), 1fr);
	gap: 20px;
}

/* Kafelek */
.je-tile {
	background-color: var(--je-color, #a87c51);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 20px 16px;
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-weight: 600;
	font-size: 0.95em;
	text-align: center;
	cursor: pointer;
	position: relative;
	transition: background-color .2s, transform .1s;
	font-family: inherit;
	line-height: 1.4;
}

.je-tile:hover {
	background-color: color-mix(in srgb, var(--je-color, #a87c51) 85%, #000);
	transform: translateY(-1px);
}

.je-tile[aria-expanded="true"] {
	background-color: color-mix(in srgb, var(--je-color, #a87c51) 75%, #000);
}

.je-check {
	flex-shrink: 0;
	font-size: 1.1em;
}

.je-tile-label {
	flex: 1;
	text-align: left;
}

/* Strzałka po prawej stronie */
.je-tile-hint {
	flex-shrink: 0;
	font-size: 1em;
	opacity: 0.7;
	transition: transform .2s, opacity .2s;
	line-height: 1;
	display: inline-block;
}

.je-tile--expandable:hover .je-tile-hint {
	opacity: 1;
	transform: translateY(2px);
}

.je-tile[aria-expanded="true"] .je-tile-hint {
	transform: rotate(180deg);
	opacity: 1;
}

.je-arrow {
	position: absolute;
	bottom: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #f5f0eb;
	opacity: 0;
	transition: opacity .2s;
}

.je-tile[aria-expanded="true"] .je-arrow {
	opacity: 1;
}

/* Panel — pełna szerokość gridu, transparentny */
.je-panel {
	grid-column: 1 / -1;
	background: transparent;
	padding: 0;
	animation: je-slide-in .2s ease;
}

/* Zawartość — szerokość jednego kafelka, pozycjonowana przez JS */
.je-panel-content {
	background: #fff;
	border-radius: 6px;
	border-top: 4px solid var(--je-color, #a87c51);
	box-shadow: 0 4px 20px rgba(0,0,0,.1);
	padding: 20px;
	position: relative;
}

@keyframes je-slide-in {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.je-panel-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: none;
	font-size: 1.1em;
	cursor: pointer;
	color: #999;
	line-height: 1;
	padding: 4px 8px;
}

.je-panel-close:hover { color: #333; }

.je-panel-inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.je-panel-img-wrap {
	width: 100%;
}

.je-panel-img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

.je-panel-text {
	flex: 1;
}

.je-panel-title {
	font-size: 1.3em;
	color: var(--je-color, #a87c51);
	margin: 0 0 14px;
	font-weight: 600;
}

.je-panel-desc {
	color: #4a4a4a;
	line-height: 1.7;
	margin: 0;
	white-space: pre-line;
}

/* Responsywność */
@media (max-width: 900px) {
	.je-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.je-grid {
		grid-template-columns: 1fr;
	}
}
