/* Podstawowe ukrycie elementów */
#sort, .tab, #flats {
    display: none;
}

/* Poprawki dla #flats */
#flats {
    position: relative;
    z-index: 1;
    clear: both;
    overflow: visible;
    min-height: auto;
}

#flats .section_wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Swiper container */
#swiper {
    width: 100%;
    height: auto;
}

#swiper .swiper-slide {
    height: auto;
}

/* Image container styling */
#image {
    position: relative;
    width: 100%;
    height: auto;
}

#image img {
    width: 100%;
    height: auto;
    display: block;
}

#image svg {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#image path {
    opacity: .7;
    transition: .15s;
    stroke: #f00 !important;
}

.click {
    cursor: pointer;
}

.selected {
    fill:#c1ac99;
}

.wolny {
    fill: #34922e9e !important;
}
.status .wolny {background-color: #34922eff !important}
.reserved {
    fill: #9e8d7f;
}
.wynajety {
    fill: #b71415b0 !important;
}

#image path:hover {
  opacity: .8;
  fill: #00000022 !important;
}

#image .sold {
    pointer-events: none;
    opacity: .9
}



.current-path {
    fill: #ff9f009e !important;
}







/* Legend styling */
#legend {
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1;
}

.fieldset {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.background {
    display: inline !important;
    width: auto;
    height: 27px;
    padding: 5px 9px;
    margin-right: 10px;
    border-radius: 3px;
}

.label3 {
    font-size: 12px;
    font-weight: bold;
}

/* Banner styling */
#banner2, #banner3 {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

#banner2 img, #banner3 img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
}

#banner2 svg, #banner3 svg {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Podstawowe style dla path i polygon */
#banner2 path, #banner2 polygon, #banner3 path, #banner3 polygon {
    fill: #00000035;
    transition: .15s;
    opacity: 1;
    cursor: pointer;
    animation: SmoothGlowAnimation linear 1.5s infinite;
    stroke: #f00;
}

/* Style hover z animacją */
#banner2 path:hover, #banner2 polygon:hover,
#banner3 path:hover, #banner3 polygon:hover {
    fill: #0000007d !important;
    opacity: 1;
    animation: SmoothGlowAnimation linear 1.5s infinite;
}

/* Alternatywna wersja z płynniejszą animacją */
@keyframes SmoothGlowAnimation {
    0%, 100% {
        filter: drop-shadow(rgba(255, 255, 255, 0.2) 0px 0px 10px);
    }
    50% {
        filter: drop-shadow(rgba(255, 255, 255, 0.6) 0px 0px 30px);
    }
}

path[data-eq="lokale-biurowe-2"], path[data-eq="lokale-biurowe-1"], path[data-eq="lokale-uslugowe"], path[data-eq="hala-a"], path[data-eq="hala-b"], path[data-eq="budynek-c"] {
    fill: #0000 !important;
    stroke: none !important;
    stroke-width: 0;
}


/* Layout fixes */
.szpalta {
    color: #787069;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}

/* Sort section styling */
#sort {
    color: #333;
    padding-top: 20px;
    position: relative;
    z-index: 2;
}

#sort .section {
    margin-bottom: 40px;
}

#sort .section_wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive layout */
@media (max-width: 768px) {
    #sort .section_wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .one-third {
        flex: none;
        width: 100%;
    }
    
    .two-third {
        flex: none;
        width: 100%;
    }
}

/* Lewa kolumna - informacje */
.one-third {
    flex: 0 0 35%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mcb-wrap-inner {
    padding: 0;
}

/* Numer mieszkania */
.numermieszkania {
    color: #000;
    padding: 20px;
    text-align: center;
    position: relative;
}

.podpis {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.numer {
    font-size: 28px;
    font-weight: bold;
    display: block;
}

/* Kolumny z informacjami */
.kolumna {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.kolumna:last-child {
    border-bottom: none;
}

.tytul {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    flex: 0 0 40%;
    margin-right: 10px;
    line-height: normal;
    text-align: left;
    font-weight: normal;
}

/* Wartości */
.powierzchnia, .status, .pomieszczenia, .pomieszczenie_uzytkowe, .pomieszczenie_pomocnicze, .aneks, .toaleta {
    font-weight: bold;
    color: #333;
    font-size: 23px;
    flex: 1;
    text-align: right;
}

.powierzchnia sup {
    font-size: 10px;
}

/* Listy */
.powierzchnia_biurowa, .zabezpieczenia, 
.internet, .udogodnienia {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.powierzchnia_biurowa li, .zabezpieczenia li, .internet li, .udogodnienia li {
    font-size: 13px;
    color: #333;
    margin-bottom: 3px;
    text-align: right;
}

.powierzchnia_biurowa li {
    font-weight: 500;
}

.udogodnienia2 {
    padding: 0;
    border: none;
}

.udogodnienia2 .tytul {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    flex: none;
}

.udogodnienia2 ul {
    text-align: left;
}

.udogodnienia2 li {
    text-align: left !important;
    font-size: 13px;
    margin-bottom: 2px;
}

/* Przyciski */
.pdf {
    padding: 2px 20px;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.plan.btn {
    background-color: #555;
    color: white;
}

.plan.btn:hover {
    background-color: #333;
}

.mail.btn {
    background-color: #b71415;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 20px;
}

.mail.btn:hover {
    background-color: #801313;
}

/* Prawa kolumna - rzut */
.two-third {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.rzutmieszkania {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.rzutmieszkania img {
    width: 100%;
    height: auto;
    max-height: 900px;
    display: block;
}

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate.fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.animate.fadeInDown {
    animation: fadeInDown 0.6s ease-out;
}

.kolumna3 {
    background: #b71415;
    border-radius: 5px;
    display: block;
    padding: 10px 0;
}

.kolumna3 .powierzchnia {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30px;
}

.kolumna3 .tytul {
    color: #fff;
}

.udogodnienia2 {
    padding-top: 20px !important;
}

.udogodnienia2 .tytul {
    width: 100%;
    color: #b71415;
}

.status-badge {
    margin-top: 0;
    background-color: #b71415;
    padding: 5px 14px;
    border-radius: 3px;
    border: 1px solid #fff;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    width: max-content;
    float: right;
}

.status {
    margin-top: -15px;
    display: block;
    position: absolute;
    right: 10px;
}

#flats .active {
    background-color: #c1ac99 !important;
    color: #2c2d2f;
}

.legenda {
    margin-bottom: 20px;
    margin-top: -20px;
    padding: 0;
    border-radius: 5px;
    display: flex;
    justify-content: center;
}

.legenda span:first-child {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: #333;
}



