.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Podstawowy reset i zmienne kolorów */
:root {
    /* Kolory z logo i bazowe */
    --color-logo-blue: #6A8E9E;
    --color-logo-beige: #D0C3B7;
    --color-dark-brown: #4A3C32;
    --color-light-beige: #F7F5F0;
    --color-medium-gray: #A0A0A0;

    /* Kolory akcentów */
    --color-accent-green: #7BBF7D;
    --color-accent-dark-blue: #3E5B6D;

    /* Ogólne kolory tekstu */
    --color-text-dark: var(--color-dark-brown);
    --color-text-light: var(--color-light-beige);
    --color-white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-light-beige);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nagłówek (Header) */
.main-header {
    background-color: var(--color-logo-blue);
    color: var(--color-light-beige);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    height: 10vh;
}
.main-header .logo img {
    height: 100%;
    width: auto;
    display: block;
}

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

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--color-light-beige);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--color-accent-green);
}

/* Sekcje ogólne */
.section {
    padding: 80px 0;
    text-align: center;
}

.section:nth-of-type(even) {
    background-color: var(--color-white);
}
.section:nth-of-type(odd) {
    background-color: var(--color-light-beige);
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--color-accent-dark-blue);
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-logo-beige);
}

/* Przyciski (CTA) */
.btn {
    display: inline-block;
    background-color: var(--color-accent-green);
    color: var(--color-white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-dark-brown);
    color: var(--color-light-beige);
    transform: translateY(-2px);
}

/* Sekcja Hero */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('images/p-20-hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Overlay przyciemniający zdjęcie tła */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 80%;
}

.hero-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--color-light-beige);
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.9);
}
.hero-section h2::after {
    background-color: var(--color-accent-green);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7);
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--color-light-beige);
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.8);
}

.hero-image-placeholder {
    display: none;
}

/* Responsywne style dla sekcji hero na mniejszych ekranach */
@media (max-width: 916px) {
    .hero-section h2 {
        font-size: 2em; /* Mniejszy rozmiar nagłówka */
        margin-bottom: 10px;
    }

    .hero-section p {
        font-size: 1em; /* Mniejszy rozmiar tekstu */
        margin-bottom: 20px;
    }

    .hero-section .hero-content {
        max-width: 90%; /* Zwiększamy szerokość, aby lepiej wykorzystać przestrzeń */
        padding: 10px; /* Dodajemy padding dla lepszego odstępu */
    }

    .hero-section {
        height: 90vh; /* Usuwamy stałą wysokość, aby sekcja dostosowała się do treści */
        min-height: 60vh; /* Minimalna wysokość, aby zachować efekt tła */
        padding: 20px 0; /* Dodajemy padding w pionie */
    }
}

/* Sekcja O Apartamencie */
.about-section ul {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.about-section ul li {
    background-color: var(--color-logo-beige);
    color: var(--color-dark-brown);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-section p {
    text-align: justify;
}

/* Galeria zdjęć */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item-placeholder {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-item-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery-item-placeholder img:hover {
    transform: scale(1.05);
}

.gallery-item-placeholder p {
    margin-top: 10px;
    font-size: 0.8em;
    color: var(--color-text-dark);
    text-align: center;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh; /* Zmniejszono, aby zrobić miejsce na podpis */
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5em;
    color: var(--color-white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-accent-green);
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6); /* Zwiększona przezroczystość */
    color: var(--color-white);
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 0 0 5px 5px;
    z-index: 2001;
}

.lightbox-description {
    font-size: 1.1em;
    margin-bottom: 10px;
    text-align: center;
}

.lightbox-www-link {
    color: var(--color-accent-green);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--color-accent-green);
    padding: 5px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lightbox-www-link:hover {
    background-color: var(--color-accent-green);
    color: var(--color-white);
}

/* Responsywne style dla urządzeń mobilnych */
@media (max-width: 916px) {
    .lightbox {
        padding: 5px; /* Mniejszy padding na urządzeniach mobilnych */
        align-items: flex-start; /* Zdjęcie zaczyna się od góry */
    }

    .lightbox-image {
        max-width: 100%; /* Zdjęcie wypełnia szerokość ekranu */
        max-height: 70vh; /* Maksymalna wysokość zdjęcia, aby zmieścić podpis */
        width: 100%;
        object-fit: cover; /* Wypełnia przestrzeń, zachowując proporcje */
        border-radius: 0; /* Usunięto zaokrąglenia dla pełnoekranowego efektu */
    }

    .lightbox-caption {
        background: rgba(0, 0, 0, 0.5); /* Jeszcze bardziej przezroczyste tło */
        padding: 10px;
        max-width: 100%; /* Pełna szerokość na mobilnych */
        font-size: 0.9em; /* Mniejszy tekst dla lepszego dopasowania */
    }

    .lightbox-description {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .lightbox-www-link {
        font-size: 0.8em;
        padding: 4px 12px;
    }

    .lightbox-close {
        font-size: 2em;
        top: 10px;
        right: 10px;
    }
}

/* Lokalizacja */
.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--color-light-beige);
    border: 2px dashed var(--color-dark-brown);
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark-brown);
    font-weight: 600;
    font-size: 1.2em;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-section ul {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.location-section ul li {
    background-color: var(--color-medium-gray);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Cennik */

.pricing-section p {
    text-align: justify;
}

.pricing-section li {
    text-align: justify;
    margin-bottom: 10px;
}

/* Opinie */
.testimonials-section {
    background-color: var(--color-logo-blue);
    color: var(--color-light-beige);
}

.testimonials-section h2::after {
    background-color: var(--color-accent-green);
}

.testimonial-item {
    background-color: rgb(106, 142, 158);
    padding: 30px;
    margin: 20px auto;
    border-radius: 10px;
    max-width: 700px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-item .author {
    font-weight: 700;
    text-align: right;
    color: var(--color-logo-beige);
}

/* Kontakt */
.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-info a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--color-accent-green);
}

/* Stopka (Footer) */
.main-footer {
    background-color: var(--color-dark-brown);
    color: var(--color-light-beige);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-nav ul li a,
.footer-nav ul li button.footer-link {
    color: var(--color-light-beige);
    text-decoration: none;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover,
.footer-nav ul li button.footer-link:hover {
    color: var(--color-accent-green);
}

/* Menu hamburgerowe */
/* Styl dla przycisku hamburgerowego */
.menu-toggle {
    display: none; /* Domyślnie ukryty na dużych ekranach */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-light-beige);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsywne menu */
@media (max-width: 916px) {
    /* Pokaż przycisk hamburgerowy */
    .menu-toggle {
        display: flex;
    }

    /* Ukryj domyślne menu */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-logo-blue);
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* Pokaż menu po aktywacji */
    .main-nav.active {
        display: block;
    }

    /* Styl dla listy menu w trybie mobilnym */
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .main-nav ul li a {
        font-size: 1.2em;
        padding: 10px;
        display: block;
    }
}


/* Styling dla klikalnych atrakcji */
.location-section .attractions-list {
    list-style: none;
}

.location-section .attractions-list li {
    margin: 10px;
    padding: 0;
    box-shadow: none;
    background-color: transparent;
}

.location-section .attractions-list a.attraction-link {
    display: inline-block;
    background-color: var(--color-medium-gray);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.location-section .attractions-list a.attraction-link:hover {
    background-color: var(--color-accent-dark-blue);
}

/* Ustawienia dla Lightbox Caption (opis + link) */
.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 0 0 5px 5px;
    z-index: 2001;
}

.lightbox-description {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: center;
}

.lightbox-www-link {
    color: var(--color-accent-green);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--color-accent-green);
    padding: 5px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lightbox-www-link:hover {
    background-color: var(--color-accent-green);
    color: var(--color-white);
}

/* Styling dla modala rezerwacji */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.booking-modal.active {
    display: flex;
}

.booking-modal-content {
    position: relative;
    background-color: var(--color-white);
    max-width: 95%;
    max-height: 95vh;
    width: 100%;
    height: 90vh;
    border-radius: 10px;
    overflow: auto; /* Włączenie przewijania */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.booking-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.booking-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    color: var(--color-dark-brown);
    cursor: pointer;
    transition: color 0.3s ease;
}

.booking-modal-close:hover {
    color: var(--color-accent-green);
}

/* Styling dla modala polityki prywatności */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.privacy-modal.active {
    display: flex;
}

.privacy-modal-content {
    position: relative;
    background-color: var(--color-white);
    max-width: 95%;
    max-height: 95vh;
    width: 100%;
    height: 90vh;
    border-radius: 10px;
    overflow: auto; /* Włączenie przewijania */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.privacy-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.privacy-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    color: var(--color-dark-brown);
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-modal-close:hover {
    color: var(--color-accent-green);
}

/* Modal regulaminu */

.regulamin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.regulamin-modal.active {
    display: flex;
}
.regulamin-modal-content {
    position: relative;
    background-color: var(--color-white);
    max-width: 95%;
    max-height: 95vh;
    width: 100%;
    height: 90vh;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.regulamin-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.regulamin-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    color: var(--color-dark-brown);
    cursor: pointer;
    transition: color 0.3s ease;
}
.regulamin-modal-close:hover {
    color: var(--color-accent-green);
}

/* Styling dla banera cookies */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.cookie-banner.active {
    display: block;
}

.cookie-banner-content {
    text-align: center;
}

.cookie-banner-content p {
    font-size: 1em;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.cookie-banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cookie-banner-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9em;
}

.cookie-banner-buttons .cookie-reject {
    background-color: var(--color-medium-gray);
}

/* Pływający przycisk Facebook */
body .floating-button-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 10000 !important; /* Bardzo wysoki z-index */
}

body .floating-button-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #1877f2;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 24px;
}

body .floating-button-container a:hover {
    background-color: #166fe5;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsywność na mniejszych ekranach */
@media (max-width: 768px) {
    body .floating-button-container {
        bottom: 15px !important;
        right: 15px !important;
        left: auto !important;
    }

    body .floating-button-container a {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Styling dla modala eventu */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.event-modal.active {
    display: flex;
}

.event-modal-content {
    position: relative;
    background-color: var(--color-white);
    max-width: 95%;
    max-height: 95vh;
    width: 100%;
    height: 90vh;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.event-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.event-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    color: var(--color-dark-brown);
    cursor: pointer;
    transition: color 0.3s ease;
}

.event-modal-close:hover {
    color: var(--color-accent-green);
}
