@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');

* {
  margin: 0;
  padding: 0;
 /* box-sizing: border-box;*/
}



body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; /* Możesz zmieniać wagę czcionki */
  margin: 0;
  padding: 0;
}

header {
    display: flex; /* Dodajemy flexbox */
    justify-content: center; /* Wyśrodkowanie w poziomie */
    align-items: center; /* Wyśrodkowanie w pionie */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 90;
  }
  
  .menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
  }
  
  .menu ul li {
    margin: 0 20px;
  }
  
  .menu ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    white-space: nowrap; /* 👈 ZABRANIA łamania tekstu */
    display: inline-block; /* zapewnia właściwe zachowanie w poziomie */
  }
  
  a {
    text-decoration: none;
  }
  
  
  
  .menu ul li a:hover {
    color: #0047AB;
  }
  
  
  header .logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin-right: auto;
  }
  
  .hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
  }
  .bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
    transition: 0.4s;
  }
  @media (max-width: 768px) {
    .menu ul {
        display: none;
  
    }
    .menu.active ul {
        display: flex;
        transform: translateX(0);
    }
    .menu ul li {
        margin: 0 0;
    }
    .hamburger {
        display: block;
    }
    header {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .logo{
        color: #000;
    }
  }


#beach-hero {
    height: 80vh;
    position: relative;
    color: white;
    display: flex;
    align-items: flex-end;
    margin-top: -75px;
    z-index: 3;
    overflow: hidden;
}

.hero-image { /* Zmiana nazwy klasy */
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image img { /* Zmiana nazwy klasy */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(0);
}

.beach-text {
    padding: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
}

/* ... inne style ... */


#beach-hero {
    /* background-image: url('pic_beach/beachsite.jpg');*/
    background-attachment: fixed; /* Kluczowy element dla paralaksy */
    background-size: 100% auto; /* Zmiana na 100% auto */
    background-repeat: no-repeat;
    background-position: center;
    height: 80vh;
    position: relative;
    color: white;
    display: flex;
    align-items: flex-end;
    margin-top: -75px;
    z-index: 3;
}


.beach-text {
    padding: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
}

.beach-text span {
    display: block;
}

.beach-text span:nth-child(1) {
    font-size: 2em;
}

.beach-text span:nth-child(2) {
    font-size: 3em;
}

.beach-text span:nth-child(3) {
    font-size: 1.5em;
}

/*--XXX lista plaż---XX*/
#beach-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.beach-item {
    width: 90%;
    display: flex;
    flex-direction: row; /* Domyślna kolejność */
    margin-bottom: 30px;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    padding: 2%;
    background-color: white;
    transition: transform 0.3s ease;
    position: relative;
    padding-bottom: 2em;
}


.beach-item p{

    padding: 10px;
}


.beach-item:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.beach-description {
    width: 45%;
    height: 100%;
    padding: 3%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.beach-name { /* To jest Twój h3 */
    font-size: 1.5em;
    margin-bottom: 10%; /* Możesz dostosować ten margines */
    text-align: left;
}

.beach-description p { /* To jest Twój p */
    margin-top: -15px; /* Ujemny margines górny - dostosuj wartość */
    line-height: 1.4;
}

.beach-address {
    font-size: 0.8em;
    color: #777;
    position: absolute; /* Pozycjonowanie absolutne */
    bottom: 0.2em; /* Umieść nad cienką linią */
    left: 5%; /* Wyrównaj do lewej krawędzi linii */
}

.beach-address a {
    color: #777;
    text-decoration: none;
}

.beach-address a:hover {
    text-decoration: underline;
}

.beach-image-container {
    width: 45%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.beach-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.beach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.beach-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background-color: #eee;
}

/* Dla parzystych elementów - zamień kolejność i pozycjonowanie adresu */

@media (min-width: 1024px) {
    .beach-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    .beach-item:nth-child(even) .beach-description {
        text-align: right;
        align-items: flex-end;
    }

    .beach-item:nth-child(even) .beach-name {
        text-align: right;
    }

    .beach-item:nth-child(even) .beach-address {
        left: auto;
        right: 5%;
        text-align: right;
    }
}

/* Media query dla telefonów */
@media (max-width: 768px) {
    .beach-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding-bottom: 3em;
        order: 0 !important; /* Resetuj kolejność flexboxa */
    }

    .beach-item p{

        padding: 10px;
    }


    .beach-description {
        width: 90%;
        text-align: center;
        align-items: center;
    }

    .beach-name {
        text-align: center;
    }

    .beach-address {
        position: absolute;
        bottom: 0.2em;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        right: auto;
    }

    /* Dodatkowo upewnij się, że style parzystych elementów nie wpływają na flex-direction */
    .beach-item:nth-child(even) {
        flex-direction: column !important;
    }

    .beach-item:nth-child(even) .beach-description {
        text-align: center !important;
        align-items: center !important;
    }

    .beach-item:nth-child(even) .beach-name {
        text-align: center !important;
    }

    .beach-item:nth-child(even) .beach-address {
        left: 50% !important;
        right: auto !important;
        text-align: center !important;
    }

    .beach-image-container {
        width: 90%;
        height: 300px;
        margin-top: 15px;
    }
}
/* Style lightboxa */
.lightbox {
    display: none;
    position: fixed;
    z-index: 4;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Style lightboxa dla zdjęć */

.image-lightbox {
    display: none; /* Domyślnie ukryty */
    position: fixed;
    z-index: 5; /* Wyższy niż inne elementy */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Ciemne tło */
}

.image-lightbox .close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 6; /* Nad obrazem */
}

.image-lightbox .close-lightbox:hover,
.image-lightbox .close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Dopasuj obraz do okna */
}

footer {
    background-color: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #ddd;
  }