/* === Globalny Reset & Box Sizing === */
html {
  box-sizing: border-box;
  scroll-behavior: smooth; /* Płynne przewijanie dla linków # */
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* === Podstawowe Style === */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #F4F8FB;
    color: #333745;
    word-wrap: break-word; 
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}

address {
    font-style: normal; /* Reset domyślnego kursywy dla address */
}

/* === Baner (Header) === */
.site-header {
    background-color: #4682B4; 
    padding: 20px 0;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    min-height: 150px; 
}

.banner-image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    animation-name: simpleFade;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes simpleFade {
    0% { opacity: 0; }
    8% { opacity: 1; } 
    42% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

.banner-image-slider .slide:nth-child(1) {
    animation-duration: 10s; 
    animation-delay: 0s;  
}

.banner-image-slider .slide:nth-child(2) {
    animation-duration: 10s; 
    animation-delay: 5s;   
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45); /* Nieco zwiększona nakładka */
    z-index: 1; 
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    z-index: 2;
    flex-wrap: wrap; /* Zezwalaj na zawijanie na mniejszych ekranach */
}

.header-title-logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Odstęp między logo a tytułem */
}

.header-title-logo h1 {
    font-size: 1.5em; /* Dostosuj w razie potrzeby */
    margin: 0;
    color: #FFFFFF;
    font-weight: bold;
}

.header-logo {
    max-height: 70px;
    width: auto;
    display: block; /* Usuń dodatkową przestrzeń pod obrazem */
}

.header-contact {
    font-size: 1.1em;
    text-align: right; /* Wyrównaj kontakt do prawej */
}

.reservation-label {
    font-size: 0.9em;
    display: block;
    margin-bottom: 2px;
    color: #E0E0E0;
}

.header-phone-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-phone-number:hover,
.header-phone-number:focus {
    color: #FFFACD;
    outline: 2px solid #FFFACD; /* Wskaźnik fokusu */
    outline-offset: 2px;
}


/* === Nawigacja Główna === */
.main-navigation {
    background-color: #005A70;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: flex-end; 
}

.main-navigation ul {
    padding: 0;
    list-style: none;
    margin: 0;
    display: flex;
}

.main-navigation ul li a {
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9em;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 2px; /* Subtelne zaokrąglenie dla fokusu */
}

.main-navigation ul li a:hover,
.main-navigation ul li a:focus { 
    background-color: #3A8AAD;
    color: #FFFACD;
    outline: none; /* Niestandardowy styl wskazuje na fokus */
}

/* === Sekcje Główne === */
main .container {
    padding-top: 25px;
    padding-bottom: 25px;
}

section {
    margin-bottom: 30px;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

section h2, section h3 { /* Zmieniono z h1, h2 */
    color: #005A70;
    text-align: center;
    margin-top: 0;
    padding-bottom: 12px;
}

section h2 {
    font-size: 2em; /* Dostosowany rozmiar H2 */
    margin-bottom: 25px;
    border-bottom: 2px solid #3A8AAD;
}

section h3 {
    font-size: 1.5em; /* Dostosowany rozmiar H3 */
    margin-bottom: 20px;
    border-bottom: 1px dashed #3A8AAD; /* Lżejsze obramowanie dla H3 */
}


section p, section li {
    color: #333745;
    margin-bottom: 12px; 
}

section ul {
    list-style: disc;
    margin-left: 20px; 
    padding-left: 10px; /* Dostosowany padding */
}


section a:not(.map-link):not(.header-phone-number) { /* Unikaj globalnego stylowania wszystkich linków w ten sposób */
    color: #3A8AAD;
    text-decoration: none;
    font-weight: bold;
}
section a:not(.map-link):not(.header-phone-number):hover,
section a:not(.map-link):not(.header-phone-number):focus { 
    text-decoration: underline;
    color: #005A70;
    outline: 1px dashed #005A70;
    outline-offset: 1px;
}

/* === Galeria === */
.scroll-hint {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

#galeria .gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden; 
    gap: 15px;
    padding: 10px 2px; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: thin; 
    scrollbar-color: #3A8AAD #E0E0E0; 
}
#galeria .gallery-scroll-container::-webkit-scrollbar { 
    height: 8px; 
}
#galeria .gallery-scroll-container::-webkit-scrollbar-track { 
    background: #E0E0E0; 
    border-radius: 4px; 
}
#galeria .gallery-scroll-container::-webkit-scrollbar-thumb { 
    background-color: #3A8AAD; 
    border-radius: 4px; 
    border: 2px solid #E0E0E0; 
}

#galeria .gallery-item {
    flex: 0 0 auto; 
    width: 280px; 
    height: auto; 
    overflow: hidden; 
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); 
    position: relative;
    display: flex; 
    flex-direction: column; 
    background-color: #fff; /* Zapewnij tło dla elementów */
}
#galeria .gallery-item a { /* Link do lightboxa */
    display: block;
    text-decoration: none;
}
#galeria .gallery-item a:focus img { /* Wizualna wskazówka przy fokusie na obrazie */
    outline: 2px solid #3A8AAD;
    outline-offset: -2px; /* Wewnątrz obrazu */
    box-shadow: 0 0 8px rgba(58, 138, 173, 0.5);
}


#galeria .gallery-item img {
    display: block; 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid #eee; 
}
#galeria .gallery-item a:hover img,
#galeria .gallery-item a:focus img { 
    transform: scale(1.05); 
    opacity: 0.85;
}

#galeria .gallery-item figcaption {
    padding: 10px; /* Zwiększony padding */
    font-size: 0.9em;
    text-align: center;
    background-color: #f9f9f9;
    color: #333;
    border-top: 1px solid #eee; /* Zapewnij obramowanie dla spójności */
}


/* === Cennik === */
#cennik ul { 
    list-style: disc; 
    margin-left: 20px; 
    padding-left: 10px; 
}
#cennik li { 
    margin-bottom: 8px; 
    padding-left: 5px; 
}
#cennik small {
    display: block; 
    margin-top: 5px;
    font-size: 0.85em;
}

/* === Lokalizacja - Link do mapy === */
.map-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #3A8AAD;
    color: white !important; /* Zapewnij biały tekst */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    font-weight: bold;
}
.map-link:hover,
.map-link:focus {
    background-color: #005A70;
    color: white !important; 
    text-decoration: none;
    outline: 2px solid #00485A;
    outline-offset: 2px;
}

/* === Kontakt (formularz) === */
.contact-form .form-group { 
    margin-bottom: 20px; /* Zwiększony margines */
}
.contact-form label { 
    display: block; 
    margin-bottom: 8px; /* Zwiększony margines */
    font-weight: bold; 
    color: #005A70; 
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"], 
.contact-form textarea {
    width: 100%; 
    padding: 12px; /* Zwiększony padding */
    border: 1px solid #ccc;
    border-radius: 4px; 
    font-size: 1em; 
    color: #333745;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: #3A8AAD;
    box-shadow: 0 0 0 2px rgba(58, 138, 173, 0.3);
}

.contact-form textarea { 
    resize: vertical; 
    min-height: 120px; /* Zwiększona wysokość */
}
.contact-form button[type="submit"] {
    display: inline-block; /* Zmieniono dla lepszego wyrównania w razie potrzeby */
    width: auto; 
    min-width: 180px; /* Zwiększona minimalna szerokość */
    background: #3A8AAD; 
    color: white;
    padding: 12px 25px; /* Dostosowany padding */
    border: none; 
    border-radius: 4px; 
    cursor: pointer;
    font-size: 1.1em; 
    font-weight: bold;
    transition: background-color 0.3s ease; 
    margin-top: 10px;
}
.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus { 
    background-color: #005A70; 
    outline: 2px solid #00485A;
    outline-offset: 2px;
}

/* === Style Przeglądarki Obrazów na Pełnym Ekranie === */
.fullscreen-viewer {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Ciemniejsze tło */
    z-index: 1000; 
    align-items: center; 
    justify-content: center; 
    padding: 10px; /* Zmniejszony padding dla większej przestrzeni na obraz */
    -webkit-overflow-scrolling: touch; 
}

.fullscreen-viewer:target {
    display: flex; 
}

.fullscreen-viewer img {
    max-width: calc(100% - 80px); /* Maksymalna szerokość uwzględniająca miejsce na przyciski nawigacyjne */
    max-height: calc(100% - 40px); /* Maksymalna wysokość uwzględniająca miejsce na przycisk zamykania */
    object-fit: contain; 
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.7); /* Mocniejszy cień */
}

.fs-close, .fs-prev, .fs-next {
    position: absolute;
    color: white;
    background-color: rgba(0,0,0,0.3); /* Subtelne tło dla przycisków */
    border-radius: 50%;
    width: 44px; /* Standardowy rozmiar celu dotykowego */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em; 
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 1001; 
    line-height: 1; /* Upewnij się, że ikona jest wyśrodkowana */
    -webkit-tap-highlight-color: transparent; /* Usuń podświetlenie po dotknięciu na urządzeniach mobilnych */
}

.fs-close:hover, .fs-prev:hover, .fs-next:hover,
.fs-close:focus, .fs-prev:focus, .fs-next:focus {
    background-color: rgba(0,0,0,0.6);
    color: #FFFACD; 
    outline: 2px solid #FFFACD; /* Niestandardowy kontur fokusu */
    outline-offset: 2px;
}

.fs-close {
    top: 15px;
    right: 15px;
    font-size: 1.8em; /* Nieco większy X */
}

.fs-prev {
    left: 15px;
    top: 50%;
    transform: translateY(-50%); 
}

.fs-next {
    right: 15px;
    top: 50%;
    transform: translateY(-50%); 
}

/* Zapobiegaj przewijaniu strony, gdy lightbox jest aktywny (progressive enhancement) */
body:has(.fullscreen-viewer:target) {
    overflow: hidden;
}


/* === Stopka === */
footer {
    background: #005A70;
    color: #E0F2F7;
    text-align: center;
    padding: 25px 15px;
    margin-top: 30px;
}
footer p { 
    margin: 0; 
    font-size: 0.9em; 
}

/* === Media Queries dla Responsywności === */
@media (max-width: 768px) {
    .site-header {
        min-height: auto; /* Dostosuj do ułożonej zawartości */
        padding: 15px 0;
    }
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-title-logo {
        flex-direction: column; /* Ułóż logo i tytuł w stos */
        margin-bottom: 15px;
    }
    .header-title-logo h1 {
        font-size: 1.3em;
    }
    .header-contact {
        margin-top: 10px; /* Odstęp przy ułożeniu w stos */
        text-align: center;
    }
    .header-logo {
        max-height: 60px;
    }

    .main-navigation .nav-container {
        justify-content: center; 
    }
    .main-navigation ul {
        flex-direction: column; 
        width: 100%;
    }
    .main-navigation ul li {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-navigation ul li:last-child {
        border-bottom: none;
    }
    .main-navigation ul li a {
        padding: 12px 15px;
    }

    section h2 {
        font-size: 1.8em; 
    }
    section h3 {
        font-size: 1.4em; 
    }

    #galeria .gallery-item {
         width: 250px; 
    }
    #galeria .gallery-item img {
        height: 180px; 
    }

    .fullscreen-viewer img {
        max-width: calc(100% - 20px); /* Dostosuj do mniejszych ekranów */
        max-height: calc(100% - 80px); /* Zapewnij miejsce na przycisk zamykania */
    }
    .fs-prev, .fs-next {
        width: 38px;
        height: 38px;
        font-size: 1.2em;
    }
    .fs-close {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .header-title-logo h1 {
        font-size: 1.1em;
    }
    .header-phone-number {
        font-size: 1.3em;
    }
    section h2 {
        font-size: 1.6em;
    }
    section h3 {
        font-size: 1.2em;
    }
    #galeria .gallery-scroll-container {
        /* Na bardzo małych ekranach, rozważ ułożenie obrazów w stos lub dalsze zmniejszenie rozmiaru */
        gap: 10px;
    }
    #galeria .gallery-item {
        width: 200px;
    }
    #galeria .gallery-item img {
        height: 150px;
    }
    .contact-form button[type="submit"] {
        width: 100%; /* Przycisk na pełną szerokość na małych ekranach */
    }
}


@media (min-width: 769px) {
    .site-header { padding: 25px 0; min-height: 200px; }
    .header-title-logo h1 { font-size: 1.7em; }
    .header-phone-number { font-size: 1.7em; }
    .header-logo { max-height: 80px; }
    .main-navigation ul li a { font-size: 0.95em; padding: 18px 22px;}
    #galeria .gallery-item { width: 320px; } 
    #galeria .gallery-item img { height: 240px; }
}

@media (min-width: 992px) {
    .site-header { min-height: 250px; }
    .header-title-logo h1 { font-size: 2em; }
    .header-logo { max-height: 90px; }
    #galeria .gallery-item { width: 350px; }
    #galeria .gallery-item img { height: 260px; }
}

@media (min-width: 1200px) {
    .site-header { min-height: 300px; }
    .header-title-logo h1 { font-size: 2.2em; }
    .header-logo { max-height: 100px; }
    #galeria .gallery-item { width: 380px; }
    #galeria .gallery-item img { height: 280px; }
}

/* Mapa - (nieużywane bezpośrednio bez iframe) */
.map-responsive {
    overflow: hidden; 
    padding-bottom: 56.25%; 
    position: relative;
    height: 0; 
    margin-bottom: 20px; 
    border-radius: 8px; 
    border: 1px solid #ccc;
}
.map-responsive iframe {
    left: 0; 
    top: 0; 
    height: 100%; 
    width: 100%; 
    position: absolute; 
    border: 0;
}