/* Ciastoterapia – mapa */
.ctm-mapa {
	--ctm-edu: #a30240;
	--ctm-ter: #fe7e03;
	--ctm-h: 520px;
	margin: 0 0 1.5rem;
}

.ctm-canvas {
	height: var(--ctm-h);
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	z-index: 0; /* żeby nie przykrywała menu i popupów motywu */
	font: inherit;
}

@media (max-width: 689px) {
	.ctm-canvas { height: min(var(--ctm-h), 70vh); }
}

/* Pasek nad mapą */
.ctm-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 14px;
}
.ctm-search {
	display: flex;
	flex-wrap: wrap; /* na wąskim ekranie napis przechodzi nad pole */
	align-items: center;
	gap: 6px 12px;
	flex: 1 1 340px;
	max-width: 540px;
}
.ctm-search-slot .ctm-toolbar { margin: 0 0 1.5em; }
.ctm-toolbar .ctm-search__label {
	flex: 0 0 auto;
	margin: 0;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	color: #282828;
}
.ctm-toolbar .ctm-search__input {
	flex: 1 1 200px;
	width: auto;
	min-width: 0;
	min-height: 44px;
	padding: 10px 18px;
	border: 2px solid #e5e5e5;
	border-radius: 999px;
	background: #fff;
	color: #282828;
	font: inherit;
	font-size: 16px; /* 16px = bez auto-zoomu na iPhonie */
	box-shadow: none;
}
.ctm-toolbar .ctm-search__input:focus {
	border-color: var(--ctm-edu, #a30240);
	outline: none;
	box-shadow: 0 0 0 3px rgba(163, 2, 64, .15);
}
.ctm-toolbar .ctm-search__msg { flex-basis: 100%; margin: 0; font-size: 14px; color: #282828; }
.ctm-toolbar .ctm-search__msg:empty { display: none; }

/* Przyciski ról */
.ctm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}
.ctm-filters[hidden] { display: none; }

.ctm-filters .ctm-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 2px solid #e5e5e5;
	border-radius: 999px;
	background: #fff;
	color: #282828;
	font: inherit;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.ctm-filters .ctm-filter:hover { border-color: #c9c9c9; }
.ctm-filters .ctm-filter[aria-pressed="true"] { border-color: #282828; background: #282828; color: #fff; }
.ctm-filters .ctm-filter--edukatorka[aria-pressed="true"] { border-color: var(--ctm-edu, #a30240); background: var(--ctm-edu, #a30240); }
.ctm-filters .ctm-filter--terapeutka[aria-pressed="true"] { border-color: var(--ctm-ter, #fe7e03); background: var(--ctm-ter, #fe7e03); color: #282828; }
.ctm-filters .ctm-filter:focus-visible { outline: 3px solid var(--ctm-edu, #a30240); outline-offset: 2px; }

.ctm-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}
.ctm-filter--edukatorka .ctm-dot { background: var(--ctm-edu, #a30240); }
.ctm-filter--terapeutka .ctm-dot { background: var(--ctm-ter, #fe7e03); }

/* Pinezki */
.ctm-marker { background: none; border: 0; }
.ctm-pin {
	position: absolute;
	left: 2px;
	top: 0;
	width: 30px;
	height: 30px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--ctm-edu, #a30240);
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s;
}
.ctm-pin--ter { background: var(--ctm-ter, #fe7e03); }
.ctm-pin--oba { background: linear-gradient(45deg, var(--ctm-edu, #a30240) 50%, var(--ctm-ter, #fe7e03) 50%); }
.ctm-pin__n {
	transform: rotate(45deg);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}
.ctm-marker:hover .ctm-pin,
.ctm-marker:focus .ctm-pin { transform: rotate(-45deg) scale(1.12); }
.ctm-marker:focus { outline: none; }
.ctm-marker:focus-visible .ctm-pin { box-shadow: 0 0 0 3px #282828; }

/* Dymek */
.ctm-mapa .leaflet-popup-content-wrapper { border-radius: 10px; }
.ctm-mapa .leaflet-popup-content { margin: 14px 16px; font-family: inherit; font-size: 15px; line-height: 1.45; }
.ctm-popup { max-height: 260px; overflow-y: auto; text-align: left; }
.ctm-mapa .ctm-popup__city { margin: 0 0 6px; font-size: 17px; line-height: 1.3; color: #282828; text-align: left; }
.ctm-popup__role {
	margin: 8px 0 2px !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ctm-edu, #a30240);
}
.ctm-popup__role--terapeutka { color: #b45400; } /* ciemniejszy pomarańcz – kontrast 4.5:1 na bieli */
.ctm-popup__list { margin: 0 !important; padding: 0 0 0 18px !important; }
.ctm-popup__list li { margin: 2px 0; }
.ctm-popup__list a { color: var(--ctm-edu, #a30240); font-weight: 600; }
.ctm-popup .ctm-popup__go {
	margin-top: 10px;
	padding: 0;
	border: 0;
	background: none !important;
	color: #282828 !important;
	min-height: 0;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

/* Lista kart */
.ctm-hidden { display: none !important; }
.ctm-listbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #fbeef3;
	color: #282828;
	scroll-margin-top: 120px; /* pod przyklejonym nagłówkiem */
}
.ctm-listbar[hidden] { display: none; }
.ctm-listbar .ctm-listbar__reset {
	padding: 6px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--ctm-edu, #a30240) !important; /* motyw nadpisuje tło przycisków */
	color: #fff !important;
	min-height: 0;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.ctm-listbar .ctm-listbar__reset:focus-visible { outline: 3px solid #282828; outline-offset: 2px; }
