/* Inwestycje Slider Styles - v2.0.0 */

.inwestycje-slider-wrapper {
    position: relative;
    width: 100%;
    height: 88vh;
    overflow: hidden;
    background: #fff;
}

.inwestycje-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Kontener dla slajdów - carousel */
.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slajdy - układają się obok siebie */
.inwestycje-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

/* Tło slajdu */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Zawartość slajdu */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Blok brązowy */
.slide-content-inner {
    text-align: center;
    padding: 40px 60px;
    background: #494441CF;
    border-radius: 0;
    max-width: 700px;
    width: 60%;
    position: relative;
    opacity: 0;
    transform: translateX(100%);
    transition: none;
}

/* Aktywny slajd - blok wjeżdża z opóźnieniem */
.inwestycje-slide.active .slide-content-inner {
    animation: slideInBlock 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}

/* Animacja wjazdu bloku */
@keyframes slideInBlock {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Klonowane slajdy - specjalna obsługa */
.inwestycje-slide.clone.active .slide-content-inner {
    opacity: 1;
    transform: translateX(0);
    animation: none;
}

/* Wrapper dla animacji tekstów wewnątrz bloku */
.slide-content-animated {
    /* Tekst jest już widoczny, bo cały blok się przesuwa */
}

/* Zawartość hero sekcji - zawsze widoczna */
.inwestycja-hero-wrapper .slide-content-inner {
    transform: translateX(0) !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Lokalizacja */
.slide-location {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Tytuł */
.slide-title {
    font-size: 50px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 30px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.slide-title a {
    color: #fff;
    text-decoration: none;
}

/* Opis */
.slide-description {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
}

.slide-description a {
    color: #fff;
    text-decoration: none;
}

/* Nawigacja po bokach */
.slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    color: #fff;
    padding: 0;
    z-index: 10;
    text-decoration: none;
}

.slide-nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.slide-nav-btn:focus,
.slide-nav-btn:active {
    outline: none;
    background: transparent;
}

.slide-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Pozycje przycisków */
.slide-nav-prev {
    left: 20px;
}

.slide-nav-prev svg {
    transform: rotate(180deg);
}

.slide-nav-next {
    right: 20px;
}

/* Ukryj nawigację gdy tylko 1 slajd */
.single-slide .slide-nav-btn {
    display: none;
}

/* Brak inwestycji */
.inwestycje-slider-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

/* ========================================
   HERO SEKCJA DLA PODSTRONY INWESTYCJI
   ======================================== */

.inwestycja-hero-wrapper {
    position: relative;
    width: 100%;
    height: 88vh;
    overflow: hidden;
    background: #fff;
}

.inwestycja-hero-wrapper .slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.inwestycja-hero-wrapper .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.inwestycja-hero-wrapper .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.inwestycja-hero-wrapper .slide-content-inner {
    text-align: center;
    padding: 40px 60px; /* Ten sam padding co w głównym sliderze */
    background: #494441CF;
    border-radius: 0;
    max-width: 700px; /* Taka sama szerokość jak główny slider */
    width: 60%; /* Taka sama szerokość jak główny slider */
    transform: translateX(0) !important; /* Zawsze widoczny w hero */
    opacity: 1 !important;
    transition: none !important;
}

.inwestycja-hero-wrapper .slide-location {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.inwestycja-hero-wrapper .slide-title {
    font-size: 50px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 30px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.inwestycja-hero-wrapper .slide-description {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    line-height: 1.6;
}

/* Nawigacja hero */
.inwestycja-hero-wrapper .slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
    color: #fff;
    padding: 0;
    z-index: 10;
    text-decoration: none;
}

.inwestycja-hero-wrapper .slide-nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.inwestycja-hero-wrapper .slide-nav-btn:focus,
.inwestycja-hero-wrapper .slide-nav-btn:active {
    outline: none;
    background: transparent;
}

.inwestycja-hero-wrapper .slide-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.inwestycja-hero-wrapper .slide-nav-prev {
    left: 20px;
}

.inwestycja-hero-wrapper .slide-nav-prev svg {
    transform: rotate(180deg);
}

.inwestycja-hero-wrapper .slide-nav-next {
    right: 20px;
}

/* ResponsywnoÅ›Ä‡ - Tablet */
@media (max-width: 1024px) {
    .slide-content-inner,
    .inwestycja-hero-wrapper .slide-content-inner {
        padding: 30px;
        max-width: 550px; /* Zmniejszone */
        width: 75%; /* Dostosowane */
    }
    
    .slide-title,
    .inwestycja-hero-wrapper .slide-title {
        font-size: 40px;
        margin-bottom: 25px;
    }
    
    .slide-title,
    .inwestycja-hero-wrapper .slide-title {
        font-size: 40px;
        margin-bottom: 25px;
    }
    
    .slide-location,
    .inwestycja-hero-wrapper .slide-location {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .slide-description,
    .inwestycja-hero-wrapper .slide-description {
        font-size: 16px;
    }
    
    .slide-nav-btn,
    .inwestycja-hero-wrapper .slide-nav-btn {
        width: 45px;
        height: 70px;
    }
    
    .slide-nav-btn svg,
    .inwestycja-hero-wrapper .slide-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ResponsywnoÅ›Ä‡ - Mobile */
@media (max-width: 768px) {
    .inwestycje-slider-wrapper,
    .inwestycja-hero-wrapper {
        height: 80vh;
        min-height: 500px;
    }
    
    .slide-content-inner,
    .inwestycja-hero-wrapper .slide-content-inner {
        padding: 25px 20px;
        width: 80%; /* Zmniejszone z 95% żeby nie zachodziło na strzałki */
        max-width: 500px;
    }
    
    .slide-title,
    .inwestycja-hero-wrapper .slide-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .slide-location,
    .inwestycja-hero-wrapper .slide-location {
        font-size: 12px;
        margin-bottom: 15px;
        letter-spacing: 1.5px;
    }
    
    .slide-description,
    .inwestycja-hero-wrapper .slide-description {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .slide-nav-btn,
    .inwestycja-hero-wrapper .slide-nav-btn {
        width: 40px;
        height: 60px;
    }
    
    .slide-nav-btn svg,
    .inwestycja-hero-wrapper .slide-nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .slide-nav-prev,
    .inwestycja-hero-wrapper .slide-nav-prev {
        left: 10px;
    }
    
    .slide-nav-next,
    .inwestycja-hero-wrapper .slide-nav-next {
        right: 10px;
    }
    
    /* Animacja na mobile z krótszym opóźnieniem */
    .inwestycje-slide.active .slide-content-inner {
        animation: slideInBlock 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
    }
}

/* ResponsywnoÅ›Ä‡ - Small Mobile */
@media (max-width: 480px) {
    .inwestycje-slider-wrapper,
    .inwestycja-hero-wrapper {
        min-height: 450px;
    }
    
    .slide-content-inner,
    .inwestycja-hero-wrapper .slide-content-inner {
        padding: 20px 15px;
        width: 75%; /* Zmniejszone żeby nie zachodziło na strzałki */
        max-width: 400px;
    }
    
    .slide-title,
    .inwestycja-hero-wrapper .slide-title {
        font-size: 26px;
        margin-bottom: 18px;
    }
    
    .slide-location,
    .inwestycja-hero-wrapper .slide-location {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .slide-description,
    .inwestycja-hero-wrapper .slide-description {
        font-size: 14px;
    }
    
    .slide-nav-btn,
    .inwestycja-hero-wrapper .slide-nav-btn {
        width: 35px;
        height: 50px;
        border-width: 1px;
    }
    
    .slide-nav-btn svg,
    .inwestycja-hero-wrapper .slide-nav-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Landscape na mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .inwestycje-slider-wrapper,
    .inwestycja-hero-wrapper {
        height: 100vh;
        min-height: auto;
    }
    
    .slide-content-inner,
    .inwestycja-hero-wrapper .slide-content-inner {
        padding: 20px;
    }
    
    .slide-title,
    .inwestycja-hero-wrapper .slide-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .slide-location,
    .inwestycja-hero-wrapper .slide-location {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .slide-description,
    .inwestycja-hero-wrapper .slide-description {
        font-size: 14px;
    }
    
    .slide-nav-btn,
    .inwestycja-hero-wrapper .slide-nav-btn {
        width: 35px;
        height: 50px;
    }
}

/* Animacja fade-in przy starcie */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.inwestycje-slider-wrapper,
.inwestycja-hero-wrapper {
    animation: fadeIn 0.5s ease-out;
}
