/**
 * Style for shortcode [branches_map]
 */

body .leaflet-popup-content {
	margin: 0;
	line-height: 1.3;
	background: #FF4132;
	color: #fff;
	border: none;
	border-radius: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 15px;
	min-height: 74px;
	box-sizing: border-box;
	font-size: 20px;
	max-width: 250px;
	min-width: 250px;
	font-family: "SangBleu Sunrise", sans-serif;
	font-weight: 600;
	line-height: 1.2;
}

.leaflet-container a.leaflet-popup-close-button {
	display: none;
}

.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	margin-bottom: -17px;
	margin-left: 51px;
}

body .leaflet-popup-content .icon-cont {
	-webkit-filter: brightness(50);
	        filter: brightness(50);
	margin-right: 10px;
}

body .leaflet-popup-content .icon-cont img {
	height: 35px;
}

body .leaflet-popup-content-wrapper,
body .leaflet-popup-tip {
	background-color: transparent;
	box-shadow: none;
}

.leaflet-popup-tip-container {
	display: none;
}

.leaflet-popup {
	margin-bottom: 0;
}

.custom-pin .pin-content {
	background: #FFBBBB;
	color: #fff;
	border-radius: 8px;
	display: flex;
	align-items: center;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
	transition: all 0.15s ease;
	white-space: nowrap;
	font-weight: 600;
	width: 58px;
	height: 58px;
	border-radius: 100px;
	text-align: center;
	box-sizing: border-box;
	justify-content: center;
}

.custom-pin {
	display: block;
	width: 58px;
	height: 58px;
	outline: none;
}

.custom-pin:focus,
.custom-pin:focus-visible {
	outline: none;
}

/* Focus ring jest rysowany dookoła AKTYWNEJ pigułki (.pin-popup-link),
   nie dookoła małego pina — patrz .maplibregl-popup--kb-focus w style.css.
   Klasa --kb-focus dodawana jest z JS tylko gdy pin ma :focus-visible. */

.custom-pin .pin-icon {
	width: 35px !important;
	height: 35px !important;
	display: inline-block;
}

.custom-pin .pin-content:hover .pin-icon {
	-webkit-filter: brightness(100);
	        filter: brightness(100);
}

.custom-pin .pin-label {
	font-size: 13px;
}

.custom-pin .pin-content:hover {
	background: #b91c1c;
}

.custom-pin.custom-pin--active .pin-content {
	background: #FF4132;
}

.custom-pin.custom-pin--active .pin-icon {
	-webkit-filter: brightness(100);
	        filter: brightness(100);
}

.map-box .map-inner {
	height: 620px;
	border-radius: 0;
	overflow: hidden;
}

.branches-map-sec .map-tab-block > .tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

/* Tylko zakładki — nie .map-inner (MapLibre dodaje tam buttony zoom). */
.branches-map-sec .map-tab-block .tabs button:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 3px #FF4132;
}

.map-tab-block > .tabs > button {
	padding: 24px 32px;
	border-radius: 0;
	border: none;
	color: var(--base-black);
	font-size: 30px;
	font-weight: 700;
	text-align: left;
	line-height: 1.4;
	background: transparent;
}

.map-tab-block > .tabs > button span {
	display: block;
	font-size: 14px;
	font-weight: 400;
	font-family: "Trebuchet MS", sans-serif;
	color: var(--base-black);
}

.map-tab-block > .tabs > button.active {
	background: #F0F0F0;
}

/* Reset stylów zakładek na kontrolkach MapLibre (oba miasta). */
.map-tab-block .map-inner .maplibregl-ctrl button {
	padding: 0;
	border-radius: inherit;
	font-size: inherit;
	font-weight: inherit;
	text-align: center;
	line-height: inherit;
	background-color: inherit;
}

.leaflet-bottom.leaflet-right,
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
	display: none;
}

/*
 * MapLibre: zewnętrzny outline + overflow:hidden na .map-inner obcina górę/dół pierścienia.
 * Inset box-shadow (jak zakładki) zostaje wewnątrz przycisku — zawsze w pełni widoczny.
 */
.branches-map-sec .maplibregl-ctrl-attrib-button:focus,
.branches-map-sec .maplibregl-ctrl button:focus {
	outline: none !important;
}
.branches-map-sec .maplibregl-ctrl-attrib-button:focus-visible,
.branches-map-sec .maplibregl-ctrl button:focus-visible {
	outline: none !important;
	box-shadow: inset 0 0 0 3px #FF4132 !important;
	border-radius: 0 !important;
}

.leaflet-top.leaflet-left .leaflet-bar {
	display: flex;
	border: none;
}

.leaflet-touch .leaflet-bar a {
	width: 40px;
	height: 40px;
	line-height: 36px;
	border: 1px solid;
	margin-left: 9px;
	border-radius: 0 !important;
}

.leaflet-top.leaflet-left {
	left: initial;
	right: 25px;
	bottom: 25px;
	top: initial;
}

img#branch-icon {
	width: auto;
	margin-bottom: 32px;
	color: #EC4E42;
	height: 60px;
}

@media (max-width: 766.98px) {
	.branches-map-sec .map-tab-block > .tabs {
		display: flex;
		flex-wrap: nowrap;
		gap: 0;
		justify-content: flex-start;
	}

	.branches-map-sec .map-tab-block > .tabs > button {
		flex: 0 0 auto;
		width: auto;
		margin: 0;
		font-size: 20px;
		padding: 16px 18px;
	}
}
