/* Container layout */

.system-dewelopera {
    position: relative;
}


.system-dewelopera .container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.system-dewelopera div#wybor {
    background: black;
    color: white;
    padding: 10px 0px;
    margin-bottom: 5px;
}

.system-dewelopera .left-panel {
	display: none;
    width: 100%; /* Możesz dostosować */
    overflow-y: auto;
    background-color: transparent; /* Opcjonalne tło */
    padding: 0rem 1rem;
	margin-top: 71px;
    max-width: 250px;
    position: relative;
    padding-bottom: 0;

}

.system-dewelopera .right-panel {
    width: 100%; /* Możesz dostosować */
    position: relative;
    z-index: 3;
}

/* Inwestycja image and canvas */
.system-dewelopera .inwestycja {
    position: relative;
    display: flex;
}

.system-dewelopera .inwestycja img {
    width: 100%;
    height: auto;
}

.system-dewelopera #myCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

/* Tooltip */ 
.system-dewelopera .tooltip {
    position: absolute;
    z-index: 10;
    /* Dodaj swoje style dla tooltipa */
}

/* Left panel styles */
.system-dewelopera .panel .btn-plan {
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 1px solid #B26B50;
    background-color: #fff;
    border-radius: 0px;
    padding: 0.25rem 0.75rem;

}

.buildings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.system-dewelopera .panel .btn-plan.active {
    background-color: #B26B50;
    color: #fff;
}

.system-dewelopera .panel .btn-plan .name {
    font-weight: 400;
	font-size: 14px;
}

.system-dewelopera .panel .btn-plan .count {
    float: right;
	font-size: 14px;
}

.system-dewelopera .floors.active {
    display: block;
}


/* Adjustments for responsive design */
@media (max-width: 768px) {
    .system-dewelopera .container {
        display : none;
    }
}

#tooltip {
    position: fixed;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
    z-index: 1000;
    transition: opacity 0.2s;
    top: 0px;
    left: 0px;
    max-width: 300px;
    width: auto;
    min-width: 120px;
    min-height: 50px;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(241, 241, 241);
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.1) 2px 2px 45px;
    color: black;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

#tooltip .divider {
width: 100%;
height: 1px;
background-color: #F5F5F5;

}

#tooltip .title {
    font-size: 16px;
	font-weight: 500;
}


#tooltip .podpis {
    background: transparent;
    text-align: left;
    color: #b16b50;
    width: 100%;
    padding: 5px 0px;
	margin-bottom: -7px;
    border-radius: 2px;
}

#tooltip p {
    font-size: 14px;
    margin: 0px;
}

#tooltip .status {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

#tooltip .status.Dostępne {
    color: green;
}

#tooltip .status.Zarezerwowane {
    color: orange;
}

#tooltip .status.Sprzedane {
    color: red;
}

#tooltip .status.Niedostępne {
    color: gray;
}

#tooltip .status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 1.5s infinite; /* Dodanie animacji */
}

@keyframes pulse {
    0% {
        transform: scale(1); /* Początkowy rozmiar */
        opacity: 1; /* Pełna widoczność */
    }
    50% {
        transform: scale(1.5); /* Powiększenie kropki */
        opacity: 0.5; /* Zmniejszenie przezroczystości */
    }
    100% {
        transform: scale(1); /* Powrót do początkowego rozmiaru */
        opacity: 1; /* Powrót do pełnej widoczności */
    }
}

#tooltip .status.Dostępne .dot {
    background-color: green;
}

#tooltip .status.Zarezerwowane .dot {
    background-color: orange;
}

#tooltip .status.Sprzedane .dot {
    background-color: red;
}

#tooltip .status.Niedostępne .dot {
    background-color: gray;
}


.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 245, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-top: 8px solid black;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

.tytul {
    color: black;
    margin-bottom: 0rem;
    padding: 1rem;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}


.left-panel::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}

.left-panel::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}


.gradient-overlay {
    width: 258px;
    position: absolute;
    height: 50px;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 2;
    pointer-events: none;
}


.gradient-overlay {
    transition: opacity 0.3s ease;
  }
  
  .hidden {
    opacity: 0;
    pointer-events: none;
  }
  

  .system-dewelopera .panel .btn-plan:hover {
    background: #B26B50;
    color: #ffffff;
}

.tytul2 {
    position: absolute;
    left: 0;
    z-index: 99999;
    color: black;
    width: 100%;
    background: #ffffff99;
	font-size: 24px;
	padding: 0.5rem;
	display: none;
}

.powrot {
    position: absolute;
    padding: 0.25rem 0.75rem;
    background: #fcb900;
    color: #3a3a3a;
    font-size: 15px;
    left: 0px;
    display: none;
    gap: 10px;
    align-items: center;
    top: 19px;
    z-index: 4;
    cursor: pointer;
}

.powrot:hover {
    background: #f7870a;
    color: #3a3a3a;
}

.powrot svg {
    width: 20px;
    height: 20px;
    /* SVG używa currentColor - dziedziczy kolor z color: white */
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}