/**
 * Strona Kontakt (page 293) — mapa, miasta, karty placówek.
 */

body.mbst-page-kontakt.mbst-premium-ui #Content {
	background: var(--mbst-surface-muted, #f4f6fa);
}

body.mbst-page-kontakt.mbst-premium-ui #Subheader {
	padding-bottom: 48px !important;
}

/* ─── Mapa ─── */
.mbst-premium-ui .section_wrapper.mbst-contact {
	max-width: none;
	padding: 0 24px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.mbst-premium-ui .mbst-map-cont {
	max-width: 1200px;
	margin: -56px auto 0;
}

.mbst-premium-ui #mbst-contact-map {
	display: block;
	width: 100%;
	height: 420px;
	min-height: 320px;
	margin: 0;
	position: relative;
	z-index: 1;
	border: none;
	border-radius: var(--mbst-radius-lg, 16px);
	box-shadow: 0 20px 56px rgba(24, 34, 91, 0.14);
	overflow: hidden;
	background: #e8edf5;
}

.mbst-premium-ui #mbst-contact-map .leaflet-container {
	height: 100%;
	width: 100%;
	font-family: inherit;
	z-index: 1;
}

.mbst-premium-ui .mbst-map-osm-note {
	margin: 10px 0 0;
	font-size: 11px;
	color: var(--mbst-text-muted, #5a6b7d);
	text-align: right;
}

.mbst-premium-ui .mbst-map-osm-note a {
	color: var(--mbst-cyan, #54add6);
}

.mbst-premium-ui .mbst-leaflet-marker {
	background: transparent;
	border: none;
}

.mbst-premium-ui .mbst-leaflet-marker-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	pointer-events: none;
}

.mbst-premium-ui .mbst-leaflet-marker-pin {
	display: block;
	width: 22px;
	height: 22px;
	background: var(--mbst-navy, #18225b);
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 4px 12px rgba(24, 34, 91, 0.35);
	transition: background 0.2s ease, transform 0.2s ease;
}

.mbst-premium-ui .mbst-leaflet-marker.is-active .mbst-leaflet-marker-pin {
	background: var(--mbst-cyan, #54add6);
	transform: rotate(-45deg) scale(1.08);
}

.mbst-premium-ui .mbst-leaflet-marker-city {
	display: block;
	max-width: 92px;
	padding: 3px 8px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-align: center;
	color: var(--mbst-navy, #18225b);
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(24, 34, 91, 0.12);
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(24, 34, 91, 0.12);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.mbst-premium-ui .mbst-leaflet-marker.is-active .mbst-leaflet-marker-city {
	color: #fff;
	background: var(--mbst-navy, #18225b);
	border-color: var(--mbst-cyan, #54add6);
}

.mbst-premium-ui .leaflet-popup.mbst-leaflet-popup .leaflet-popup-content-wrapper {
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(24, 34, 91, 0.15);
	border: 1px solid rgba(24, 34, 91, 0.08);
}

.mbst-premium-ui .mbst-map-popup-city {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mbst-cyan, #54add6);
	margin-bottom: 4px;
}

.mbst-premium-ui .mbst-map-popup-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--mbst-navy, #18225b);
	line-height: 1.35;
	margin-bottom: 6px;
}

.mbst-premium-ui .mbst-map-popup-desc {
	font-size: 12px;
	line-height: 1.45;
	color: var(--mbst-text-muted, #5a6b7d);
}

.mbst-premium-ui .mbst-map-popup-link {
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: var(--mbst-cyan, #54add6);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mbst-premium-ui .mbst-map-popup-link:hover {
	background: var(--mbst-navy, #18225b);
	transform: translateY(-1px);
}

/* ─── Lista placówek ─── */
.mbst-premium-ui .section_wrapper.mbst-contact-list {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px 72px;
}

.mbst-premium-ui .mbst-city-group {
	margin-bottom: 40px;
}

.mbst-premium-ui .mbst-city-group + .mbst-city-group {
	padding-top: 8px;
	border-top: 1px solid rgba(24, 34, 91, 0.08);
}

.mbst-premium-ui .mbst-city-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
}

.mbst-premium-ui .mbst-city-heading::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 1.4em;
	border-radius: 2px;
	background: var(--mbst-cyan, #54add6);
	flex-shrink: 0;
}

.mbst-premium-ui .mbst-city-heading-btn {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mbst-navy, #18225b);
	cursor: pointer;
	text-align: left;
	transition: color 0.2s ease;
}

.mbst-premium-ui .mbst-city-heading-btn:hover,
.mbst-premium-ui .mbst-city-heading-btn:focus-visible {
	color: var(--mbst-cyan, #54add6);
	outline: none;
}

.mbst-premium-ui .mbst-city-heading-btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(84, 173, 214, 0.35);
	border-radius: 4px;
}

.mbst-premium-ui .mbst-city-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.mbst-premium-ui .mbst-facility-card {
	background: #fff;
	border-radius: var(--mbst-radius-md, 12px);
	padding: 22px 24px;
	box-shadow: 0 4px 20px rgba(24, 34, 91, 0.06);
	border: 1px solid rgba(24, 34, 91, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mbst-premium-ui .mbst-facility-card {
	cursor: pointer;
}

.mbst-premium-ui .mbst-facility-card[data-mbst-no-map="1"] {
	cursor: default;
}

.mbst-premium-ui .mbst-facility-card:hover {
	box-shadow: 0 12px 32px rgba(24, 34, 91, 0.1);
	transform: translateY(-2px);
}

.mbst-premium-ui .mbst-facility-card.is-map-active {
	border-color: var(--mbst-cyan, #54add6);
	box-shadow: 0 0 0 2px rgba(84, 173, 214, 0.35), 0 12px 32px rgba(24, 34, 91, 0.12);
	transform: translateY(-2px);
}

.mbst-premium-ui .mbst-facility-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 14px;
}

.mbst-premium-ui .mbst-facility-card h4 {
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
	flex: 1 1 180px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mbst-navy, #18225b);
}

.mbst-premium-ui .mbst-facility-map-btn {
	flex: 0 0 auto;
	margin: 0;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mbst-navy, #18225b);
	background: rgba(84, 173, 214, 0.12);
	border: 1px solid rgba(84, 173, 214, 0.35);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mbst-premium-ui .mbst-facility-map-btn:hover,
.mbst-premium-ui .mbst-facility-map-btn:focus-visible {
	color: #fff;
	background: var(--mbst-cyan, #54add6);
	border-color: var(--mbst-cyan, #54add6);
	outline: none;
}

.mbst-premium-ui .mbst-facility-body {
	font-size: 14px;
	line-height: 1.6;
	color: var(--mbst-text, #1a2b3c);
}

.mbst-premium-ui .mbst-facility-body p {
	margin: 0 0 10px;
}

.mbst-premium-ui .mbst-facility-body p:last-child {
	margin-bottom: 0;
}

.mbst-premium-ui .mbst-hours-label {
	display: block;
	margin-top: 12px;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mbst-text-muted, #5a6b7d);
}

.mbst-premium-ui .mbst-contact-line {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	margin: 4px 0;
	color: var(--mbst-navy, #18225b);
	text-decoration: none;
	word-break: break-word;
}

.mbst-premium-ui .mbst-contact-line:hover {
	color: var(--mbst-cyan, #54add6);
}

.mbst-premium-ui .mbst-contact-icon,
.mbst-premium-ui .mbst-facility-body .icon-globe,
.mbst-premium-ui .mbst-facility-body .icon-mail,
.mbst-premium-ui .mbst-facility-body .icon-call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5em;
	min-width: 1.5em;
	height: 1.5em;
	margin: 0;
	font-size: 14px;
	color: var(--mbst-cyan, #54add6);
	flex-shrink: 0;
}

.mbst-premium-ui .mbst-facility-body a:not(.mbst-contact-line) {
	color: var(--mbst-cyan, #54add6);
	font-weight: 500;
}

.mbst-premium-ui .mbst-facility-body a:not(.mbst-contact-line):hover {
	color: var(--mbst-navy, #18225b);
}

/* Legacy classes (fallback) */
.mbst-premium-ui .mbst-col,
.mbst-premium-ui .mbst-col-city,
.mbst-premium-ui .mbst-col-item {
	display: none;
}

@media (max-width: 767px) {
	.mbst-premium-ui .mbst-map-cont {
		margin-top: -32px;
		padding: 0 12px;
	}

	.mbst-premium-ui #mbst-contact-map {
		height: 300px;
		border-radius: 12px;
	}

	.mbst-premium-ui .section_wrapper.mbst-contact-list {
		padding: 32px 16px 48px;
	}

	.mbst-premium-ui .mbst-city-cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mbst-premium-ui .mbst-facility-card {
		padding: 18px 16px;
	}

	.mbst-premium-ui .mbst-facility-card h4 {
		font-size: 16px;
	}
}
