body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Zmieniamy na fixed, aby było przyklejone */
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 90;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #007bff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: transform 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* Style dla mniejszych ekranów */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px; /* Wysokość nagłówka */
        left: 0;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }
}


#room-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%;
    margin-top: -75px;
    z-index: -1;
}

.hero-image img { /* Zmiana nazwy klasy */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(0);
}

.room-text {
    padding: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
}

/* ... inne style ... */




#room-hero {
    background-image: url('pic_room/roomsite.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: black;
    display: flex;
    align-items: flex-start;
    margin-top: 75px;
    z-index: 3;
}


.room-text {
    padding: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
}

.room-text span {
    display: block;
}

.room-text span:nth-child(1) {
    font-size: 1vw;
}

.room-text span:nth-child(2) {
    font-size: 2vw;
}

.room-text span:nth-child(3) {
    font-size: 1.5vw;
}


.room-opis {
    display: block; /* Upewnia się, że jest to element blokowy */
    width: 100%;    /* Jawnie ustawia szerokość na 100% rodzica */
}

.room-separator {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 10px auto; /* Zmiana: góra/dół na 10px, lewo/prawo na auto */
    width: 80%;
}

#room-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.room-container{
    display: flex;
    flex-direction: row; /* Domyślna kolejność */
    justify-content: center; /* Wyśrodkowanie w poziomie */
    align-items: center; /* Wyśrodkowanie w pionie */
}

.room-item {
    width: 90%;
    display: flex;
    flex-direction: column; /* 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;
}


.room-item:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.room-description {
    width: 45%;
    height: 100%;
    padding: 3%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.room-name { /* To jest Twój h3 */
    font-size: 1.5em;
    margin-bottom: 10%; /* Możesz dostosować ten margines */
    text-align: left;
}

.room-description p { /* To jest Twój p */
    margin-top: -15px; /* Ujemny margines górny - dostosuj wartość */
    line-height: 1.4;
}

.room-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 */
}

.room-address a {
    color: #777;
    text-decoration: none;
}

.room-address a:hover {
    text-decoration: underline;
}

.room-image-container {
    width: 45%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.room-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;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.room-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) {
    .room-item:nth-child(even) {
        flex-direction: row-reverse;
    }

    .room-item:nth-child(even) .room-description {
        text-align: right;
        align-items: flex-end;
    }

    .room-item:nth-child(even) .room-name {
        text-align: right;
    }

    .room-item:nth-child(even) .room-address {
        left: auto;
        right: 5%;
        text-align: right;
    }
}

/* Media query dla telefonów */
@media (max-width: 768px) {
    .room-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding-bottom: 3em;
        order: 0 !important; /* Resetuj kolejność flexboxa */
    }

    .room-container{
        display: flex;
        flex-direction: column; 
    }

    .room-description {
        width: 90%;
        text-align: center;
        align-items: center;
    }

    .room-name {
        text-align: center;
    }

    .room-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 */
    .room-item:nth-child(even) {
        flex-direction: column !important;
    }

    .room-item:nth-child(even) .room-description {
        text-align: center !important;
        align-items: center !important;
    }

    .room-item:nth-child(even) .room-name {
        text-align: center !important;
    }

    .room-item:nth-child(even) .room-address {
        left: 50% !important;
        right: auto !important;
        text-align: center !important;
    }

    .room-image-container {
        width: 90%;
        height: 300px;
        margin-top: 15px;
        align-items: center ;
        font-size: small;
    }

    .room-text {
        padding: 20px;
        margin-bottom: 20px;
        margin-left: 20px;
      }

      .room-text span:nth-child(1) {
        font-size: 0.8em; /* Możesz użyć mniejszych wartości em */
    }

    .room-text span:nth-child(2) {
        font-size: 1em;
    }

    .room-text span:nth-child(3) {
        font-size: 0.9em;
    }

    
}
/* 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;
  }