/* CSX Tools: mapa klubów, wygląd jak ap-child */

.csxtools-map {
	display: flow-root;
	position: relative;
}

.csxtools-map__list {
	position: relative;
	float: right;
	width: 31%;
}

/* wybór województwa */
.csxtools-map__choose {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 2;
	background-color: #fff;
}

.csxtools-map__choose.is-open {
	box-shadow: 0 11px 17px -2px rgba(0, 0, 0, 0.38);
}

.csxtools-map__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 0 15px;
	border: 0;
	background-color: #666;
	color: #fff;
	font: inherit;
	font-size: 16px;
	line-height: 45px;
	text-align: left;
	cursor: pointer;
}

.csxtools-map__toggle:hover {
	background-color: #666;
}

.csxtools-map__toggle:focus-visible,
.csxtools-map__regions button:focus-visible,
.csxtools-map__club:focus-visible,
.csxtools-map__more:focus-visible,
.csxtools-map__load:focus-visible {
	outline: 2px solid #2f4b7a;
	outline-offset: 2px;
}

.csxtools-map__chevron {
	flex: none;
	margin-left: 15px;
	transition: transform 0.2s;
}

.csxtools-map__choose.is-open .csxtools-map__chevron {
	transform: rotate(180deg);
}

.csxtools-map__regions {
	max-height: 360px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.csxtools-map__regions button {
	display: block;
	width: 100%;
	margin: 5px 0;
	padding: 0 0 0 15px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.csxtools-map__regions button:hover,
.csxtools-map__regions button[aria-current="true"] {
	background-color: #eee;
}

/* lista klubów */
.csxtools-map__clubs {
	max-height: 450px;
	padding-top: 55px;
	overflow-x: hidden;
	overflow-y: auto;
	scroll-behavior: smooth;
}

.csxtools-map__region[hidden] {
	display: none;
}

.csxtools-map__item {
	margin-right: 10px;
	padding-right: 15px;
	padding-bottom: 20px;
	margin-bottom: 15px;
	border-bottom: 1px dotted #ddd;
	white-space: normal;
}

.csxtools-map__club {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.csxtools-map__name {
	display: block;
	margin-bottom: 3px;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
}

.csxtools-map__line {
	display: block;
}

.csxtools-map__link {
	margin: 0 0 5px;
}

.csxtools-map__more {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.csxtools-map__more[aria-expanded="true"] {
	display: none;
}

/* mapa */
.csxtools-map__canvas {
	position: relative;
	float: left;
	width: 66%;
	height: 450px;
	background: #e5e3df;
}

.csxtools-map__load {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 0 20px;
	border: 0;
	background-color: #2f4b7a;
	color: #fff;
	font: inherit;
	line-height: 45px;
	cursor: pointer;
}

.csxtools-map__notice {
	position: absolute;
	right: 15px;
	bottom: 15px;
	left: 15px;
	margin: 0;
	text-align: center;
}

.csxtools-map__info:not(:empty) {
	float: left;
	width: 100%;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px dotted #eee;
	column-count: 2;
	column-gap: 40px;
}

.csxtools-map__popup strong {
	display: block;
}

@media screen and (max-width: 800px) {

	.csxtools-map__list,
	.csxtools-map__canvas {
		float: none;
		width: 100%;
	}

	.csxtools-map__choose {
		position: static;
	}

	.csxtools-map__clubs {
		max-height: 280px;
		padding-top: 10px;
	}

	.csxtools-map__canvas {
		height: 300px;
	}

	.csxtools-map__info:not(:empty) {
		column-count: 1;
	}
}

@media (prefers-reduced-motion: reduce) {

	.csxtools-map__chevron,
	.csxtools-map__clubs {
		transition: none;
		scroll-behavior: auto;
	}
}
