.map .flex-container {
	gap: 0;
	justify-content: space-between;
	align-items: top;
	margin-bottom: 100px;
	flex-wrap: wrap;
}

/* --- POCZĄTEK: Pionowa lista filtrów na mapie --- */

/* Upewnij się, że główny kontener mapy ma pozycjonowanie względne */
.map-wrap {
    position: relative;
}

/* Stylizacja pionowego kontenera na filtry */
.vertical-filters {
    position: absolute;
    top: 20px;    /* Odstęp od górnej krawędzi mapy */
    right: 20px;  /* Odstęp od prawej krawędzi mapy */
    z-index: 1000; /* Upewnia się, że filtry są nad kafelkami mapy */

    /* --- KLUCZOWE WŁAŚCIWOŚCI --- */

    /* 1. Ograniczenie wysokości.
       Lista filtrów będzie mogła zająć maksymalnie wysokość swojego rodzica 
       (.map-wrap) pomniejszoną o 40px (20px na górny i 20px na dolny margines wizualny).
       Dzięki temu nigdy nie "wyjedzie" poza kontener mapy. */
    max-height: calc(100% - 40px);

    /* 2. Włączenie pionowego przewijania.
       Wartość 'auto' sprawia, że pasek przewijania pojawi się 
       TYLKO wtedy, gdy lista filtrów faktycznie będzie wyższa niż max-height. */
    overflow-y: auto;

    /* --- Pozostałe style dla estetyki --- */
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 15px;
}

/* Układ pionowy dla sklonowanych filtrów */
.vertical-filters .map-filters {
    display: flex;
    flex-direction: column; /* Ustawia elementy w kolumnie */
    align-items: flex-start; /* Wyrównuje do lewej */
    gap: 10px;
    overflow-x: visible; /* Wyłącza poziome przewijanie dla tej wersji */
}

/* Dostosowanie przycisków w pionowej liście */
.vertical-filters .map-filter-btn {
    width: 100%; /* Przyciski zajmują całą dostępną szerokość kontenera */
    justify-content: flex-start; /* Ikona i tekst do lewej */
	padding: 8px 15px;
}

.vertical-filters .map-filter-btn img {
	width: 15px;
	height: 15px;
}

/* Ukryj pionowe filtry na urządzeniach mobilnych */
@media (max-width: 996px) {
    .vertical-filters {
        display: none;
    }
}

.vertical-filters::-webkit-scrollbar {
    width: 6px; /* Szerokość paska */
}

.vertical-filters::-webkit-scrollbar-track {
    background: transparent; /* Tło "rynienki" paska */
}

.vertical-filters::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4); /* Kolor samego suwaka */
    border-radius: 10px;
}
/* --- KONIEC: Pionowa lista filtrów na mapie --- */

.map .flex-container .full {
	width: 100%;
}

.map .flex-container .full h2 {
	color: #000;
	font-family: "Space Grotesk";
	font-size: 80px;
	font-style: normal;
	font-weight: 600;
	line-height: 97%; /* 77.6px */
	margin: 0 auto 25px auto;
}

.map .scroll {
	display: block;
	padding: 0;
	position: relative;
	background: #000;
	width: 100%;
	left: 0;
	height: 1px;
	margin-top: 30px;
}

.map .scroll>div {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 41px;
	height: 12px;
	background: #000;
}

.popup {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	height: 100%;
	z-index: 999999999;
	background: #000;
	;padding: 50px 40px;
	transition: 500ms;
}

.popup.open {
	right: 0;
}

.popup .head {
	padding: 0 0 54px 0;
	border-bottom: 1px solid #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.popup .head .title {
	margin: 0;
	color: #FFF;
	font-family: "Space Grotesk";
	font-size: 60px;
	font-style: normal;
	font-weight: 600;
	line-height: 97%; /* 58.2px */
}

.popup .head a.close {
	
}

.popup .head a.close div {
	position: relative;
	width: 67px;
	height: 67px;
	overflow: hidden;
	transform: rotate(180deg);
}

.popup .head a.close div svg:first-of-type {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: 300ms;
}

.popup .head a.close div svg:last-of-type {
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	transition: 300ms;
}

.popup .head a.close div svg path {
	transition: 300ms;
}

@media only screen and (min-width: 997px) {
	.popup .head a.close:hover div svg path {
		fill: #DEFC52;
	}

	.popup .head a.close:hover div svg:first-of-type {
		left: 100%;
	}

	.popup .head a.close:hover div svg:last-of-type {
		left: 0;
	}
}

.popup .content {
	position: relative;
	overflow-y: auto;
    height: calc(100vh - 210px);
}

.popup .content .flex-container {
	border-bottom: 1px solid #fff;
}

.popup .content .flex-container .half {
	
}

.popup .content .flex-container .half:first-of-type {
	padding-right: 100px;
}

.popup .content .flex-container .half p.desc {
	color: #FFF;
	margin: 0 auto;
	leading-trim: both;
	margin: 0 auto 40px auto;
	text-edge: cap;
	font-family: "Space Grotesk";
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 133%; 
}

.popup .content .flex-container .half p.cat,
.popup .content .flex-container .half p.loc {
	margin: 40px auto 0 auto;
}

.popup .content .flex-container .half p.cat span:first-of-type,
.popup .content .flex-container .half p.loc span:first-of-type {
	color: #DEFC52;
	leading-trim: both;
	text-edge: cap;
	font-family: "Space Grotesk";
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 133%; /* 26.6px */
	text-transform: uppercase;
}

.popup .content .flex-container .half p.cat span:last-of-type,
.popup .content .flex-container .half p.loc span:last-of-type {
	color: #FFF;
	leading-trim: both;
	text-edge: cap;
	font-family: "Space Grotesk";
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 133%;
}

.popup .content .flex-container .half p.green {
	color: #DEFC52;
	display: block;
	margin: 28px auto 208px auto;
	leading-trim: both;

	text-edge: cap;
	font-family: "Space Grotesk";
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 133%; /* 19.95px */
	text-transform: uppercase;
}

.popup .content .flex-container .half:last-of-type {
	padding: 40px;
	border-left: 1px solid #fff;
}

.popup .content .flex-container .half:last-of-type img {
	width: auto;
	height: 100%;
	max-width: 100%;
    max-height: 100%;
	object-fit: cover;
}

.popup .content .flex-container .half:last-of-type video {
	width: auto;
	height: 100%;
	max-width: 100%;
    max-height: 100%;
}

.popup .content .flex-container .half:last-of-type iframe {
	width: 100%;
	height: 100%;
	max-width: 100%;
    max-height: 100%;
}

.popup .content .flex-container + .flex-container,
.popup .content .flex-container + .flex-container .half {
	border: none;
}

.popup .content .flex-container + .flex-container {
	padding: 50px 0 100px 0;
}

.popup .content .flex-container + .flex-container .half p.title {
	color: #FFF;
	margin: 0 auto;
	font-family: "Space Grotesk";
	font-size: 60px;
	font-style: normal;
	font-weight: 600;
	line-height: 97%; /* 58.2px */
}

.popup .content .flex-container + .flex-container .half p:not(.title) {
	color: #FFF;
	leading-trim: both;
	text-edge: cap;
	font-family: "Space Grotesk";
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 133%; /* 19.95px */
	margin: 0 auto;
}

.popup .content .flex-container + .flex-container .half p:not(.title) span {
	display: block;
	margin: 0 auto 25px auto;
	color: #DEFC52;
	leading-trim: both;
	text-edge: cap;
	font-family: "Space Grotesk";
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 133%; /* 26.6px */
	text-transform: uppercase;
}

.popup .content .flex-container + .flex-container .half p:not(.title) + p:not(.title) {
	margin-top: 38px;
}

.popup .mobile {
	display: none;
}

.popup .pc {
	display: block;
}

.no-select { user-select: none; }
.map .scroll > div:active { cursor: grabbing; }

/* Filters row with hidden native scrollbar */
.map-wrap { max-width: 100%; margin: 0 auto; padding: 0; }
.map-filters-wrap { position: relative; display: flex; align-items: center; margin-bottom: 50px; flex-wrap:wrap; }
.map-filters-wrap .head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-bottom: 25px; margin-bottom: 50px; border-bottom: 1px solid #000; }
.map-filters-wrap .head .btns {display: flex; gap: 40px; align-items: center;}
.map-filters-wrap .head p {font-family: "Space Grotesk"; font-weight: 400;font-size: 20px; margin: 0;}
.map-filters { display: flex; gap: 15px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.map-filters::-webkit-scrollbar { display: none; }
.map-filter-btn {font-family: "Space Grotesk"; cursor: pointer; transition: 300ms; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 13px 25px; border-radius: 3px; border: 1px solid #000; background: none;}
.map-filter-btn span {font-family: "Space Grotesk"; transition: 300ms; text-transform: uppercase; white-space: nowrap;}
@media only screen and (min-width: 1066px) {
.map-filter-btn:hover { background: #DEFC52;  }
.map-filter-btn:hover span {  }
}
.map-filter-btn.active { background: #DEFC52; }
.map-filter-btn.active span {  }
.map-filter-btn img { width: 30px; height: 30px; object-fit: contain; }
.arrow-btn { border: none; background: transparent; cursor:pointer; }
.arrow-btn svg path {transition: 300ms;}
@media only screen and (min-width: 1066px) {
.arrow-btn:hover svg path { fill: #D3FF82;  }
}
#acf-leaflet { height: 600px; width: 100%; overflow: hidden; }
.popup-wrap { background: #000; color: #fff; display: inline-flex; padding:20px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px; border-radius: 3px; }
.popup-wrap * {color: #fff;}
.leaflet-popup-content {;margin: 0 !important}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
	box-shadow: none !important;
	background: transparent !important;

}

.leaflet-container a.btn {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	width: auto;
	background: #DEFC52;
	border: 1px solid #DEFC52;
	text-transform: uppercase;
	padding: 12px 20px;
	transition: 300ms;
}

.leaflet-container a.btn span {
	color: #000;
	font-family: "Space Grotesk";
	font-size: 10px;
	font-style: normal;
	font-weight: 400;
	line-height: 111%; /* 16.65px */
	text-transform: uppercase;
	transition: 300ms;
}

.leaflet-container a.btn div {
	position: relative;
	overflow: hidden;
	width: 15px;
	height: 15px;
}

.leaflet-container a.btn div svg:first-of-type {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: 300ms;
}

.leaflet-container a.btn div svg path {
	transition: 300ms;
}

.leaflet-container a.btn div svg:last-of-type {
	position: absolute;
	top: 100%;
	left: -100%;
	width: 100%;
	height: 100%;
	transition: 300ms;
}

.leaflet-container a.btn:hover {
	background: #000;
}

.leaflet-container a.btn:hover span {
	color: #DEFC52;
}

.leaflet-container a.btn:hover div svg path {
	fill: #DEFC52;
}

.leaflet-container a.btn:hover div svg:first-of-type {
	top: -100%;
	left: 100%;
}

.leaflet-container a.btn:hover div svg:last-of-type {
	top: 0;
	left: 0;
}

.leaflet-container a.leaflet-popup-close-button span {
	color: #fff;
}

.map-filters-wrap .btns.mobile {display: none;}

@media only screen and (max-width: 996px) {
	.map .flex-container {
		flex-wrap: wrap;
		gap: 0;
	}

	.map .flex-container .full {
		width: 100% !important;
	}

	.map .flex-container .full h2 {
		color: #000;
		margin-bottom:40px;
		font-family: "Space Grotesk";
		font-size: 50px;
		font-style: normal;
		font-weight: 600;
		line-height: 97%;
	}

	.map .flex-container {
		margin-bottom: 40px;
	}

	.module {
		margin-bottom: 20px;
	}

	.map-filters-wrap .head .btns {
		display: none;
	}

	.map-filters {
		gap: 10px;
	}

	.map-filter-btn {
		flex-wrap: wrap;
		widthL: 130px;
	}

	.map-filter-btn span {
		 white-space: normal;
	}

	.map-filters-wrap .btns.mobile {
		display: flex;
		width: 100%;
		margin: 30px auto 10px auto;
		justify-content: space-between;
	}

	.popup .mobile {
		display: block;
	}

	.popup .pc {
		display: none;
	}

	.popup {
		padding: 22px;
	}

	.popup .mobile {
		position: relative;
		overflow-y: auto;
		height: 100%;
	}

	.popup .mobile a.close {
		display: block;
	    margin: 0 0 0 auto;
	    text-align: right;
	}

	.popup .mobile a.close svg {
		width: 60px;
        height: 60px;
	}

	.popup .mobile h2 {
		color: #FFF;
		margin-top: 0;
		font-family: "Space Grotesk";
		font-size: 40px;
		font-style: normal;
		font-weight: 600;
		line-height: 97%; 
		margin-bottom: 25px;
		padding-bottom: 25px;
		border-bottom: 1px solid #fff;
	}

	.popup .mobile p.cat,
	.popup .mobile p.loc {
		margin: 0 auto 29px auto;
	}

	.popup .mobile p.cat span:first-of-type,
	.popup .mobile p.loc span:first-of-type {
		color: #DEFC52;
		leading-trim: both;
		text-edge: cap;
		font-family: "Space Grotesk";
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 133%; 
	}

	.popup .mobile p.cat span:last-of-type,
	.popup .mobile p.loc span:last-of-type {
		color: #FFF;
		leading-trim: both;
		text-edge: cap;
		font-family: "Space Grotesk";
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 133%;
	}

	.popup .mobile p.green {
		color: #DEFC52;
		leading-trim: both;
		text-edge: cap;
		font-family: "Space Grotesk";
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 133%; /* 19.95px */
		text-transform: uppercase;
		margin: 0 auto 50px auto;
	}

	.popup .mobile p.desc {
		color: #FFF;
		margin: 0 auto;
		leading-trim: both;

		text-edge: cap;
		font-family: "Space Grotesk";
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 133%;
	}

	.popup .mobile img,
	.popup .mobile video,
	.popup .mobile iframe {
		width: 100%;
		height: auto;
		margin-top: 25px;
		padding-top: 25px;
		margin-bottom: 25px;
		padding-bottom: 25px;
		border-top: 1px solid #fff;
		border-bottom: 1px solid #fff;
	}
	
	.popup .mobile iframe {
		height: 50vh;	
	}

	.popup .mobile p.title {
		color: #FFF;
		font-family: "Space Grotesk";
		font-size: 40px;
		font-style: normal;
		font-weight: 600;
		line-height: 97%; /* 38.8px */
		margin: 0 auto 45px auto;
	}

	.popup .mobile div.artist p {
		color: #FFF;
		margin: 0 auto;
		leading-trim: both;

		text-edge: cap;
		font-family: "Space Grotesk";
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 133%; 
	}

	.popup .mobile div.artist p + p {
		margin-top: 30px;
	}

	.popup .mobile div.artist p span {
		display: block;
		margin: 0 auto 20px auto;
		color: #DEFC52;
		leading-trim: both;
		text-edge: cap;
		font-family: "Space Grotesk";
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 133%; /* 19.95px */
		text-transform: uppercase;
	}
}