.mapa-scroll-wrapper {
    margin: 20px 0;  
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
	text-align: center;
	align-self: center;
/*     border-bottom: #54c9fc 5px solid; */
    z-index: 10000000000;
}

#mapa-wrapper {
/* 	border: 10px solid red; */
	padding-bottom: 0px;
	align-content: center;
	display: block; 
	width: 100%; 
	position: relative; 
	margin: 0 auto; 
	text-align: center;
}

.mapa-osrodka-container {
    width: 1200px; /* lub więcej – tyle, ile wynosi pełna szerokość mapy */
    height: 950px;
    position: relative;
    margin: 0 auto;
	border: 0px solid #fff;
	/* border-radius: 10px;
    background-color: white; */
    z-index: 9999999999;
}
.mapa-wrapper-na-gorze{
    padding: 0;
    width: 100%;
    position: relative;
    z-index: 10000000000;
}
.mapa-tlo {
    background: url('mapa3.png');
    background-repeat: no-repeat;
    height: 950px;
    background-size: 1200px 950px;
    background-position: top left;
    width: 100%;
    display: block; 
    overflow: hidden;
}
.mapa-ikony {

    position: absolute;
    top: -20px;
    left: -80px;
    width: 1200px;
    height: 950px;
}
.ikona {
    position: absolute;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}
.ikonavr {
    padding: 5px;
    background: white;
    border: 1px solid white;
    border-radius: 50%; 
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
}
.napisvr{
    position: relative;
    left: 100px;
    top: 10px;
    font-size: 2.5em;
    color: #efefef;
    font-weight: bold;
}
.ikona .tooltip {
    display: none;
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.75em; 
	min-width: 150px;
    max-width: 400px;
    text-align: left;
    z-index: 9999999999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ikona:hover .tooltip {
    display: block; 
}

 
.ikona:hover {
    transform: scale(1.05);
    z-index: 10; 
}

.ikona:hover::after {
    opacity: 1;
} 

.popup-wraper{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
	height: 100vh;
    background: rgba(0,0,0,0.75);
    padding: 20px;  
    z-index: 999999999999999;
}
.popup {
  display: block;
  position: fixed;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 85vw;
  max-height: 85vh;           /* ograniczamy wysokość */
  overflow-y: auto;           /* włączenie przewijania */
  background: white;
  padding: 0px;
  border: 1px solid white;
  border-radius: 15px;
  z-index: 9999999999999999 !important;
  box-sizing: border-box;
}



#psv-container {
    width: 100%;
/*     height: 80%; */
    max-height: 80vh;
    position: relative;
    overflow: hidden;
    margin: 0;
	margin-top: 0px;
    padding: 0;
    text-align: left;
    border-radius: 15px;
    overflow: hidden; 
}

#close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
	padding: 7px 15px;
    background: #fafafa;
    border: none;
	border-radius: 15px !important;
    font-size: 2em;
    cursor: pointer;
    z-index: 1000; /* Dodaj lub zwiększ, jeśli już jest */
    color: #333;   /* Dodaj, jeśli nie widać przycisku na białym tle */
}

#loader-panorama{
	position: relative;
	top: 30px;
	margin: 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Style dla hotspotów */

/* Kontener panoramy */
#psv-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

/* Style hotspotów */
.marzipano-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    z-index: 99999;
    display: flex; /* lub inline-flex, by wymusić rozmiar wg zawartości */
    align-items: center;
    justify-content: center;
}


.hotspot-inner {
	
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 99999;
}

.hotspot-inner:hover {
    transform: scale(1.1);
    background: rgba(54, 201, 252, 1);
    z-index: 99999;
}

/* Loader */
#loader-panorama {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
	display: none;
}

.mapa-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1000000000;
  pointer-events: auto;
}
.custom-hotspot {
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    cursor: pointer;
}
.hotspot-info-popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, 0);
  background: #000;
	color: white;
  border-radius: 8px;
  padding: 20px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 999999999999999999;
}

.hotspot-info-content {
  position: relative;
}

.close-hotspot-info {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
}

.video-container {
  border-radius: 10px;
  overflow: hidden;
}

.video-container video::-webkit-media-controls {
  display: none !important;
}

.manual-play-button {
  opacity: 0.8;
  transition: opacity 0.3s;
}

.manual-play-button:hover {
  opacity: 1;
}

#video-popup-overlay {
/*   position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999999999; */
}

#video-popup-content {
/*   position: relative;
  background: #000;
  padding: 20px;
  border-radius: 10px;
  max-width: 90vw;
  max-height: 80vh; */
}

#video-popup-close {
	align-self: right;
    position: relative;
    top: 0px;
    right: 10px;
	margin: 0 0 10px 0;
	padding: 7px 15px;
    background: #fafafa;
    border: none;
	border-radius: 9px !important;
    font-size: 2em;
    cursor: pointer;
    z-index: 1000; /* Dodaj lub zwiększ, jeśli już jest */
    color: #333;   /* Dodaj, jeśli nie widać przycisku na białym tle */
}
