:root {
    --primary-color: #2c5e3f;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --white-color: #fff;
    --font-family: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1011;
    /* WAŻNE: Podniesienie całego nagłówka */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    /* <-- Ustaw maksymalną wysokość logo, możesz tu poeksperymentować */
    width: auto;
    /* Szerokość dostosuje się automatycznie z zachowaniem proporcji */
    display: block;
    /* Usuwa ewentualne dodatkowe odstępy pod obrazkiem */
}


.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    z-index: 1011;
    /* Aby logo było nad menu mobilnym */
}

.nav-desktop {
    list-style: none;
    display: flex;
}

.nav-desktop li+li {
    margin-left: 2rem;
}

.nav-desktop a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: var(--primary-color);
}

/* odsunięcie treści pod header */
main {
    padding-top: 80px;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-swiper {
    position: absolute;
    inset: 0;
    z-index: 0;
    touch-action: pan-y;
}

.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
}

.hero-text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--white-color);
    will-change: transform;
}


.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    will-change: transform;
}

.hero-text p {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    will-change: transform;
}

.cta-button {
    font-size: 1rem;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: #1a3a26;
    transform: translateY(-3px);
}

/* Nawigacyjne strzałki - POPRAWIONA WERSJA */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white-color);

    /* 1. Podniesienie strzałek na wierzch, aby nic ich nie blokowało */
    z-index: 100;

    /* 2. Zwiększenie obszaru dotyku/kliknięcia dla łatwiejszej obsługi */
    padding: 15px;
    width: auto;
    /* Dostosowuje szerokość do nowej przestrzeni */
    height: auto;
    /* Dostosowuje wysokość do nowej przestrzeni */
    
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 2rem;
}

.hero-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--white-color) !important;
}

/* CONTENT SECTIONS */
.content-section {
    padding: 4rem 5%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
    scroll-margin-top: 80px;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.amenity {
    background: var(--secondary-color);
    padding: 0.6rem 1rem;
    border-radius: 5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* CONTACT */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
    /* Lepsze dla danych kontaktowych */
}

.contact-details,
.map {
    flex: 1;
    min-width: 300px;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 5px;
}

/* FOOTER */
footer {
    background: var(--text-color);
    color: var(--white-color);
    text-align: center;
    padding: 1.5rem 5%;
}


/* === STYLE MENU MOBILNEGO === */
.hamburger {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    position: absolute;
    /* Zmiana z 'fixed' na 'absolute' */

    /* === PIONOWE CENTROWANIE === */
    top: 50%;
    transform: translateY(-50%);


    right: 5%;
    /* Pozostaje bez zmian */
    z-index: 1012;
}
    



.hamburger-box {
    width: 30px;
    height: 30px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    border-radius: 3px;
    transition: transform 0.3s ease;
}


.hamburger-inner {
    position: absolute;
    top: 50%;
    left: 0;

}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Animacja hamburgera do X */

.hamburger.is-active {
    z-index: 1014;
    /* Wyższy niż cokolwiek innego na stronie */
}

.hamburger.is-active .hamburger-inner {
    background-color: transparent !important;
    /* Ważne, aby ukryć środkową linię nawet na czerwonym tle */
}

.hamburger.is-active .hamburger-inner::before {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.is-active .hamburger-inner::after {
    transform: translateY(-10px) rotate(-45deg);
}

.nav-mobile {
    display: none;
    /* Ukryte domyślnie */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1010;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out 0.1s;
    
}

.nav-mobile.is-active {
    transform: translateX(0);
}

.nav-mobile a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 2rem;
    margin: 1.5rem 0;
    font-weight: 700;
}

#particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    /* Ważne: cząsteczki będą pod tekstem, ale nad tłem slidera */
    pointer-events: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
        /* Ukryj nawigację desktopową */
    }

    .hamburger {
        display: block;
        /* Pokaż hamburger */
    }

    .nav-mobile {
        display: flex;
        /* Pozwól nawigacji mobilnej się pokazać, gdy jest aktywna */
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }
}






/* Nowe style dla listy apartamentów */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.apartment-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.apartment-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.apartment-card-content {
    padding: 1.5rem;
}

.apartment-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.apartment-card-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.8;
}





/* Nowe style dla podstrony apartamentu */
.apartment-detail-header {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.apartment-detail-header-overlay {
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apartment-detail-header h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.apartment-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: left;
    align-items: flex-start;
}
.apartment-desc {
    flex: 2;
    min-width: 300px;
}
.apartment-amenities-box {
    flex: 1;
    min-width: 250px;
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
}
.apartment-amenities-box ul {
    list-style: none;
    padding: 0;
}
.apartment-amenities-box li {
    margin-bottom: 0.5rem;
}

/* Style dla filtrowanej galerii */
.gallery-filters {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: #fff; /* Kolor tekstu na przycisku po najechaniu */
}

.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.gallery-grid-filterable {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    min-height: 50vh;
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Ustawiamy stałą wysokość dla wszystkich kafelków */
    object-fit: cover; /* Zdjęcie dopasuje się, aby wypełnić kafelek bez zniekształceń */
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Lekkie powiększenie zdjęcia po najechaniu */
}

/* Styl dla ukrytych elementów */
.gallery-item.hide {
    transform: scale(0.8);
    opacity: 0;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}