/* Resetowanie marginesów i paddingów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #333;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Ukrycie wizualne z zachowaniem dostępności (np. pojedynczy <h1> per strona dla SEO/czytników) */
.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;
}

header {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem;
}

/* Stylizacja nagłówka */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
}

.nav-left, .nav-right {
    display: flex;
    flex: 1;
}

.nav-left {
    justify-content: flex-end;
}

.nav-right {
    justify-content: flex-start;
}

.nav-left ul, .nav-right ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-left ul li, .nav-right ul li {
    margin: 0 0.5rem;
}

.nav-left ul li a, .nav-right ul li a {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-left ul li a:hover, .nav-right ul li a:hover {
    color: #FFA500; /* Pomarańczowy kolor dla efektu hover */
    text-shadow: 0 0 10px #FFA500;
}

.nav-left ul li a.active,
.nav-right ul li a.active,
.menu ul li a.active {
    color: #FFA500;
    text-shadow: 0 0 10px #FFA500;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    max-height: 80px;
}

.social-icons-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    right: 1rem;
}

.social-icons-header .social-icon {
    margin: 0 10px;
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons-header .social-icon:hover {
    color: #FFA500;
}

.menu-toggle {
    display: none;
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    border: none;
    padding: 0;
    cursor: pointer;
}

.menu {
    display: none;
}

.menu ul li a {
    color: #fff;
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
}

/* Menu mobilne */
@media (max-width: 1024px) {
    .navbar {
        position: relative;
        min-height: 56px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-left, .nav-right {
        display: none;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin-right: 0;
        flex: 0 0 auto;
        z-index: 1;
    }

    .menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        position: absolute;
        top: 100%;
        left: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .menu.show {
        max-height: 500px;
        transition: max-height 0.5s ease-in;
    }

    .menu ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .menu ul li {
        width: 100%;
        margin: 0;
    }
}

.info-box nav a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    color: #fff;
    background-color: #FFA500; /* Pomarańczowy przycisk */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.info-box nav a:hover {
    background-color: #ff8c00;
    color: #fff;
}

/* Sekcja Hero */
.hero-section {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.image-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 20s ease-in-out;
}

.image-slider img.zoom {
    transform: scale(1.1);
}

.image-slider img:first-child {
    opacity: 1;
}

.image-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-text-slider {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 80%;
}

.hero-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
    transition: opacity 1s, transform 1s;
}

.hero-text.active {
    transform: translate(-50%, 0);
    opacity: 1;
}

.hero-text h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
    color: #ffffff; /* Pomarańczowy tekst */
    text-shadow: 0 0 15px #ff9900;
}

.hero-text p {
    color: #fff;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* Strzałki nawigacji */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
}

.left-arrow {
    left: 30px;
}

.right-arrow {
    right: 30px;
}

.slider-arrow img {
    width: 50px;
    height: 50px;
    pointer-events: auto;
}

/* Existing styles for the 'Info' section */
/* Existing styles for the 'Info' section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grid layout */
    gap: 1rem; /* Odstęp między gridami */
    padding: 5rem 0;
    background-color: #333; /* Ciemniejsze tło */
    position: relative;
    z-index: 1;
    margin-top: 93vh; /* panel wjeżdża wyżej na zdjęcie parallax */
    padding-top: 7rem; /* więcej miejsca u góry, bo falowana krawędź wcina się w zawartość */
    /* Miękka fala u góry – wycina górną krawędź odsłaniając zdjęcie parallax pod spodem.
       clip-path/mask przycinają box-shadow, więc cień „uniesienia" robimy przez filter: drop-shadow,
       który podąża za konturem fali. */
    clip-path: url(#info-wave);
    filter: drop-shadow(0 -12px 18px rgba(0, 0, 0, 0.8));
}

.wave-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* clip-path + filter na .info-section potrafią zostawić włoskowatą, subpikselową
   szczelinę na dolnej krawędzi, przez którą prześwituje zdjęcie parallax (hero jest
   position:fixed pod całą stroną). Podciągamy galerię o 2px, by ją przykryć. */
.info-section + .gallery-section {
    margin-top: -2px;
}

.info-box {
    text-align: center;
    padding: 1rem;
    background-color: #444; /* Ciemniejsze tło dla boksów */
    margin: 3rem;
    color: #fff;
    display: flex;
    flex-direction: column; /* Kolumna */
    justify-content: space-between; /* Równomierne rozmieszczenie */
    height: 100%; /* Pełna wysokość */
    border-radius: 1rem; /* Zaokrąglone rogi jak w bloku apartamentu */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Cień jak w bloku apartamentu */
}

.info-box p {
    padding: 1rem;
}

.info-box p.info-highlight {
    padding: 0 1rem 0.5rem;
    color: #FFA500;
    font-weight: 600;
}

/* Odstęp między ikoną (zegar / telefon) a tekstem w wyróżnionych liniach */
.info-box p.info-highlight .svg-icon {
    margin-right: 0.4rem;
}

.info-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .info-box img {
        height: 280px;
    }

    .menu ul li a,
    .info-box p,
    .about-text p,
    .accommodation-text p,
    .menu-details p,
    .menu-note,
    .restaurant-info-section .restaurant-info-item,
    footer p {
        font-size: 1rem;
    }

    .info-section {
        margin-top: 100vh;
        padding: 2rem 0.75rem; /* Adjust padding for small screens */
    }
    
    .info-box {
        margin: 1rem 0; /* Adjust margins for small screens */
        border-radius: 1rem;
    }
    
    .info-box {
        flex-direction: column; /* Ensure image is on top and text below */
    }

    .info-box img {
        margin: 0 0 1rem 0; /* Ensure top margin for the image */
    }

    header {
        padding: 0.75rem;
    }

    .navbar {
        padding: 0;
    }

    .logo img {
        max-height: 60px;
    }

    .social-icons-header {
        display: none;
    }

    .hero-text-slider {
        top: 42%;
        width: min(92%, 34rem);
    }

    .hero-text {
        width: 100%;
    }

    .slider-arrow img {
        width: 36px;
        height: 36px;
    }

    .gallery-container {
        width: calc(100% - 3.5rem);
    }

    .gallery-slide img {
        height: 220px;
    }

    .gallery-dots {
        margin-top: 0.75rem;
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }

    .location-section {
        padding: 1.5rem 0;
    }

    .location-section .map iframe {
        height: 320px;
    }

    .about-section,
    .accommodation-section,
    .menu-section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .about-section {
        padding-top: 6.5rem;
        padding-bottom: 3rem;
    }

    .gallery-header p {
        font-size: 1rem;
    }
}

/* Sekcja galerii */
.gallery-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #333; /* Ciemniejsze tło */
    padding: 2rem 0;
}

.gallery-container {
    overflow: hidden;
    width: 80%;
}

.gallery-slide {
    display: flex;
    transition: transform 1s ease-in-out;
}

.gallery-slide img {
    min-width: 23%;
    height: 250px;
    box-sizing: border-box;
    border: 2px solid #FFA500; /* Pomarańczowa ramka */
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.45); /* Delikatniejsza poświata */
    transition: box-shadow 0.3s;
    margin: 1%;
    object-fit: cover;
    object-position: center;
}

.gallery-arrow {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.gallery-arrow img {
    width: 30px;
    height: 30px;
}

.left-arrow {
    position: absolute;
    left: 30px;
}

.right-arrow {
    position: absolute;
    right: 30px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    padding: 0;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #717171;
}

/* ===== Stopka (układ kolumnowy) ===== */
footer.footer {
    background-color: #111; /* Bardzo ciemne tło */
    color: #fff;
    padding: 3.25rem 1.5rem 1.5rem;
    text-align: left;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1.1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-logo {
    margin: 0 0 0.6rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #FFA500;
    letter-spacing: 0.5px;
}

.footer-tagline {
    margin: 0 0 1.2rem;
    max-width: 34ch;
    color: #c9c9c9;
    line-height: 1.55;
    font-size: 0.95rem;
}

.footer-heading {
    display: inline-block;
    margin: 0 0 1.1rem;
    padding-bottom: 0.45rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid rgba(255, 165, 0, 0.45);
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #c9c9c9;
    line-height: 1.45;
    font-size: 0.95rem;
}

.footer-list .svg-icon {
    flex-shrink: 0;
    margin-top: 0.18em;
    color: #FFA500; /* svg-icon ma fill:currentColor → ikona pomarańczowa */
}

.footer-list a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-list a:hover,
.footer-list a:focus-visible {
    color: #FFA500;
}

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
    color: #FFA500;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: gap 0.2s, color 0.3s;
}

.footer-map-link:hover,
.footer-map-link:focus-visible {
    color: #fff;
    gap: 0.75rem;
}

.footer .social-icons {
    display: flex;
    gap: 0.7rem;
    margin: 0;
}

.footer .social-icon {
    width: 40px;
    height: 40px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.footer .social-icon:hover,
.footer .social-icon:focus-visible {
    background: #FFA500;
    color: #111;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1.25rem;
}

.footer-copy {
    margin: 0;
    color: #9a9a9a;
    font-size: 0.82rem;
}

/* Stopka — telefony i mały tablet: jedna kolumna, wyśrodkowane */
@media (max-width: 768px) {
    footer.footer {
        padding: 2.5rem 1.25rem 1.5rem;
        text-align: center;
    }

    /* footer.footer dla wyższej specyficzności niż reguła 2-kolumnowa z @media max-1024px */
    footer.footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        justify-items: center;
    }

    .footer-col {
        width: 100%;
        max-width: 360px;
    }

    .footer-tagline {
        max-width: none;
    }

    .footer-list li {
        justify-content: center;
        text-align: left;
    }

    .footer .social-icons {
        justify-content: center;
    }

    .footer-map-link {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.85rem;
    }
}

footer p a{
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.info-highlight a {
    color: #FFA500;
    text-decoration: none;
    transition: color 0.3s;
}

footer p a:hover {
    color: #FFA500;
}

/* Formularz rezerwacji (SMS) – noclegi / agroturystyka */
.reservation-section {
    background-color: #333;
    padding: 8rem 1rem 1rem; /* górny odstęp pod stały header (jak w .accommodation-section) */
    display: flex;
    justify-content: center;
}

/* Oferta zaraz pod formularzem nie musi już robić miejsca na header */
.reservation-section + .accommodation-section {
    padding-top: 2rem;
}

/* Falowane przejście między sekcjami o różnym kolorze tła.
   Dolna sekcja „wypływa" falą swojego koloru (--wave-color) w górę, nad poprzednią,
   z cieniem od góry – ten sam efekt nachodzenia co fala na stronie startowej.
   Maska SVG ma stałą wysokość, więc głębokość fali nie zależy od wysokości sekcji. */
.section-wave-top {
    position: relative;
    /* domyślny kształt fali (wariant A); poszczególne warianty podmieniają tę zmienną */
    --wave-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2044'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,30%20C240,8%20480,8%20720,24%20C960,40%201200,40%201440,18%20L1440,44%20L0,44%20Z'/%3E%3C/svg%3E");
}

.section-wave-top::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 44px;
    transform: translateY(-43px); /* unosi falę nad sekcję, w obszar poprzedniej */
    background-color: var(--wave-color, #333);
    -webkit-mask: var(--wave-mask) no-repeat bottom / 100% 100%;
    mask: var(--wave-mask) no-repeat bottom / 100% 100%;
    filter: drop-shadow(0 -5px 5px rgba(0, 0, 0, 0.45));
    pointer-events: none;
    z-index: 2;
}

/* Warianty kształtu – grzbiet raz z lewej, raz z prawej, różne wysokości */
.section-wave-top.wave-b {
    --wave-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2044'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,18%20C240,40%20480,40%20720,24%20C960,8%201200,8%201440,30%20L1440,44%20L0,44%20Z'/%3E%3C/svg%3E");
}

.section-wave-top.wave-c {
    --wave-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2044'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,28%20C360,16%20720,20%201080,14%20C1260,11%201350,12%201440,20%20L1440,44%20L0,44%20Z'/%3E%3C/svg%3E");
}

.section-wave-top.wave-d {
    --wave-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2044'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,34%20C200,6%20440,4%20680,22%20C920,40%201160,42%201440,14%20L1440,44%20L0,44%20Z'/%3E%3C/svg%3E");
}

.section-wave-top.wave-e {
    --wave-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2044'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,22%20C240,32%20540,40%20840,30%20C1100,21%201280,8%201440,18%20L1440,44%20L0,44%20Z'/%3E%3C/svg%3E");
}

/* Kolor fali = kolor sekcji, która wypływa do góry */
.accommodation-section.section-wave-top {
    --wave-color: #222;
}

.gallery-section.section-wave-top,
.location-section.section-wave-top {
    --wave-color: #333;
}

.footer.section-wave-top {
    --wave-color: #111;
}

/* Sekcja tuż nad falującą potrzebuje zapasu u dołu, by fala nachodziła na puste tło, nie na treść.
   Obejmuje też przypadek, gdy stopka/lokalizacja jest tuż po <main> (location wewnątrz main). */
.reservation-section:has(+ .section-wave-top),
.accommodation-section:has(+ .section-wave-top),
.about-section:has(+ .section-wave-top),
.location-section:has(+ .section-wave-top),
main:has(+ .section-wave-top) > :last-child {
    padding-bottom: 3.5rem;
}

@media (max-width: 768px) {
    .section-wave-top::before {
        height: 30px;
        transform: translateY(-29px);
    }

    .reservation-section:has(+ .section-wave-top),
    .accommodation-section:has(+ .section-wave-top),
    .about-section:has(+ .section-wave-top),
    .location-section:has(+ .section-wave-top),
    main:has(+ .section-wave-top) > :last-child {
        padding-bottom: 2.5rem;
    }
}

.reservation-card {
    width: 100%;
    max-width: 640px;
    background-color: #444;
    color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 2rem;
}

.reservation-card h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin: 0 0 0.5rem;
    color: #fff;
}

.reservation-intro {
    text-align: center;
    margin: 0 0 1.5rem;
    color: #ccc;
    font-size: 0.95rem;
}

.reservation-form .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.reservation-form .form-field {
    flex: 1 1 0;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.reservation-form label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.reservation-form input,
.reservation-form textarea {
    background-color: #333;
    border: 1px solid #555;
    border-radius: 0.5rem;
    color: #fff;
    padding: 0.6rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    color-scheme: dark; /* ciemny natywny kalendarz w polach date */
}

.reservation-form input:focus,
.reservation-form textarea:focus {
    outline: none;
    border-color: #FFA500;
}

.reservation-form textarea {
    resize: vertical;
}

.reservation-submit {
    width: 100%;
    background-color: #FFA500;
    color: #222;
    border: none;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.reservation-submit:hover:not(:disabled) {
    background-color: #ffb733;
}

.reservation-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reservation-submit .svg-icon {
    margin-right: 0.4rem;
}

.reservation-hint {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    margin: 0.75rem 0 0;
}

/* Windows/Linux: chowamy formularz SMS jeszcze przed renderem (skrypt w <head>),
   żeby nie mignął zanim JS wstawi blok "Zadzwoń". */
.no-sms-form .reservation-form,
.no-sms-form .reservation-intro {
    display: none;
}

.reservation-call {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.reservation-call-lead {
    font-size: 1.05rem;
    color: #f0f0f0;
    margin: 0 0 1.25rem;
}

.reservation-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #FFA500;
    color: #222;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.5rem;
    padding: 0.9rem 1.6rem;
    transition: background-color 0.3s;
}

.reservation-call-btn:hover {
    background-color: #ffb733;
}

.reservation-call-hint {
    font-size: 0.85rem;
    color: #aaa;
    margin: 1rem 0 0;
}

.reservation-fallback {
    text-align: center;
    font-size: 0.85rem;
    color: #ccc;
    margin: 0.4rem 0 0;
}

.reservation-fallback a {
    color: #FFA500;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.reservation-fallback a:hover {
    text-decoration: underline;
}

/* flatpickr – dopasowanie do pomarańczowego motywu */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #FFA500;
    border-color: #FFA500;
    color: #222;
}

.flatpickr-day.inRange {
    background: rgba(255, 165, 0, 0.25);
    border-color: rgba(255, 165, 0, 0.25);
    box-shadow: -5px 0 0 rgba(255, 165, 0, 0.25), 5px 0 0 rgba(255, 165, 0, 0.25);
}

.flatpickr-day.today {
    border-color: #FFA500;
}

.flatpickr-day:hover {
    background: #555;
    border-color: #555;
}

/* Większy, czytelniejszy kalendarz na desktopie */
@media (min-width: 768px) {
    .flatpickr-calendar {
        transform: scale(1.15);
        transform-origin: top left;
    }
}

@media (max-width: 480px) {
    .reservation-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .reservation-card {
        padding: 1.5rem;
    }
}

/* Responsywność */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-section {
        grid-template-columns: 1fr;
        clip-path: url(#info-wave-mobile); /* płytsza fala, by nie zachodziła na pierwszy info-box */
        /* svh = wysokość ekranu przy widocznym pasku adresu – dzięki temu fala wystaje
           lekko ponad „linię zgięcia" na każdym telefonie. vh to fallback dla starszych przeglądarek. */
        margin-top: 94vh;
        margin-top: 94svh;
    }

    .gallery-section img {
        width: 99%;
        min-width: 99%;
        margin: 0.5%;
    }

    .social-icons-header {
        position: static;
        justify-content: flex-end;
        width: auto;
        margin-top: 0;
        margin-left: auto;
        padding-right: 0.25rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .left-arrow {
        position: absolute;
        left: 10px;
    }

    .right-arrow {
        position: absolute;
        right: 10px;
    }
}

/* Stylizacja ikon social media */
.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.social-icon {
    margin: 0 10px;
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #FFA500;
}

/* Ikony inline SVG (zastąpiły Font Awesome) — dziedziczą rozmiar z font-size i kolor z color */
.svg-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em; /* wyrównanie do tekstu jak ikona fontowa */
}

/* Stylizacja sekcji z lokalizacją */
.location-section {
    background-color: #333; /* Ciemniejsze tło */
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.location-section h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.location-section .map {
    width: 100%;
    margin: 0;
}

.location-section .map iframe {
    border: 0;
    width: 100%;
    height: 450px;
}

/* Stylizacja ikon social media w nagłówku */
.social-icons-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.social-icons-header .social-icon {
    margin: 0 10px;
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons-header .social-icon:hover {
    color: #FFA500;
}

/* Klasy animacji (własne — zastępują Animate.css, te same wartości: czas 1s, fadeInUp) */
.animate__animated {
    visibility: hidden;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__animated.animate__fadeInUp {
    visibility: visible;
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Szanuj ustawienie "ogranicz ruch" w systemie (jak w Animate.css) */
@media (prefers-reduced-motion: reduce) {
    .animate__animated {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

/* Przycisk Scroll to Top */
#scrollToTopBtn {
    display: none; /* Ukryty domyślnie */
    position: fixed;
    bottom: 20px;
    left: 30px; /* Przeniesienie na lewą stronę */
    z-index: 99;
    border: none;
    outline: none;
    background: transparent; /* Usunięcie tła przycisku */
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

#scrollToTopBtn img {
    width: 40px; /* Dostosowanie wielkości ikony */
    height: 40px;
}

#scrollToTopBtn.show {
    display: block; /* Pokazywanie przycisku */
    transform: translateY(0); /* Animacja wyjeżdżania */
    opacity: 1;
}

#scrollToTopBtn.hide {
    transform: translateY(100px); /* Animacja chowania */
    opacity: 0;
}

#scrollToTopBtn:hover img {
    opacity: 0.8; /* Efekt przy najechaniu */
}

/* Sticky przycisk "Zadzwoń" – bliźniaczy do strzałki, po prawej stronie */
.call-fab {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFA500;
    font-size: 34px;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.3s, transform 0.3s;
}

.call-fab:hover {
    opacity: 0.8;
}

.gallery-header {
    text-align: center;
    padding: 7.5rem 1rem 2rem;
    background-color: #333;
    color: #fff;
}

.gallery-header h1 {
    font-size: 3rem;
    margin-bottom: 0;
    line-height: 1.1;
}

.gallery-header p {
    font-size: 1.2rem;
    color: #ddd;
}

/* Stylizacja galerii */
.masonry-gallery-container {
    margin: 3rem;
    margin-top: 1rem;
    background-color: #333;
    column-count: 4; /* Liczba kolumn */
    column-gap: 1rem; /* Odstęp między kolumnami */
}

.masonry-gallery-item {
    break-inside: avoid; /* Zapobiega łamaniu elementów */
    margin-bottom: 1rem; /* Odstęp między elementami */
    overflow: hidden;
    position: relative;
}

.masonry-gallery-item img {
    width: 100%;
    height: auto; /* Atrybuty width/height (anty-CLS) nie wymuszają sztywnej wysokości — skalowanie zostaje responsywne */
    display: block;
    transition: transform 0.35s ease;
    transform-origin: center center;
}

.masonry-gallery-item:hover img {
    transform: scale(1.05); /* Efekt powiększenia przy najechaniu */
}


/* Responsywność */
@media (max-width: 1200px) {
    .masonry-gallery-container {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-gallery-container {
        column-count: 2;
    }

    .gallery-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .masonry-gallery-container {
        column-count: 1;
    }
}
/* Existing styles for the 'O nas' section */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #222;
    padding: 8rem 0 7rem; /* górny odstęp pod stały header (jak w .reservation-section) */
    color: #fff;
}

.about-container {
    display: flex;
    flex-direction: row; /* Ensure row layout for larger screens */
    max-width: 1200px;
    width: 90%;
    background-color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    overflow: hidden;
}

.about-text {
    flex: 1;
    padding: 30px;
}

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    width: 50%; /* Ensure the image takes half width on larger screens */
    height: auto;
    object-fit: cover;
    margin: 1rem; /* Margin for larger screens */
}

/* Media query for smaller screens */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column; /* Stack image on top and text below */
    }
    
    .about-image {
        width: calc(100% - 2rem); /* Adjust width to account for margin */
        height: auto; /* Maintain aspect ratio */
        margin: 1rem; /* Symmetric margins on all sides */
    }
    
    .about-text {
        text-align: center; /* Center the text for better readability */
    }
}

/* Existing styles for the 'Accommodation' section */
.accommodation-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #222;
    padding: 8rem 1rem 1rem 1rem;
    color: #fff;
}

.accommodation-container {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    background-color: #333;
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    overflow: hidden;
}

.accommodation-container.reverse {
    flex-direction: row-reverse;
}

.accommodation-media {
    width: 50%;
    align-self: center;
    position: relative;
    margin: 1rem;
    overflow: hidden;
    background-color: #222;
}

.accommodation-slider-track {
    position: relative;
    height: 520px;
}

.accommodation-media.is-static .accommodation-slider-track {
    height: 520px;
}

.accommodation-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    overflow: hidden;
}

.accommodation-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.accommodation-media.is-static .accommodation-slide,
.accommodation-media.is-static .accommodation-slide.active {
    position: relative;
    inset: 0;
    height: 100%;
    opacity: 1;
    pointer-events: auto;
}

.accommodation-image-link {
    position: absolute;
    inset: 0;
    display: block;
    cursor: pointer;
}

.accommodation-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #222;
}

.accommodation-media.is-static .accommodation-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
}

.accommodation-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.accommodation-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.accommodation-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.accommodation-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.accommodation-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.accommodation-arrow img {
    width: 18px;
    height: 18px;
}

.accommodation-arrow-left {
    left: 12px;
}

.accommodation-arrow-right {
    right: 12px;
}

.accommodation-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.accommodation-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.accommodation-dot.active {
    background-color: #FFA500;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .accommodation-container,
    .accommodation-container.reverse {
        flex-direction: column; /* Stack image on top and text below */
        width: 100%;
        margin: 1rem 0; /* Smaller margins for top and bottom */
    }
    
    .accommodation-media {
        width: calc(100% - 2rem);
        margin: 1rem auto;
    }

    .accommodation-slider-track {
        height: 360px;
    }

    .accommodation-media.is-static .accommodation-slider-track {
        height: 360px;
    }
    
    .accommodation-text {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .accommodation-text h2 {
        font-size: 2rem;
    }

    .accommodation-text h3 {
        font-size: 1.25rem;
    }

    .accommodation-text p,
    .about-text p {
        font-size: 1rem;
    }
}

/* Stylizacja zakładek menu */
.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tab-link {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1rem 2rem;
    margin: 0.5rem;
    background-color: #333; 
    color: #fff; 
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.tab-link img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.tab-link.active {
    color: #FFA500; /* Pomarańczowy kolor dla aktywnej zakładki */
}

.tab-link:hover {
    color: #FFA500; /* Pomarańczowy kolor przy najechaniu */
}

.tab-link::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #FFA500; /* Pomarańczowy kolor podkreślenia */
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.tab-link.active::after {
    width: 100%;
}

.tab-link:hover::after {
    width: 100%;
}

/* Responsywność */
@media (max-width: 1024px) {
    .menu-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Trzy kolumny na mniejszych ekranach */
        gap: 1rem; /* Odstęp między przyciskami */
        justify-items: center; /* Wyśrodkowanie przycisków */
    }
}

@media (max-width: 768px) {
    .tab-link {
        width: 100%;
        min-height: 100px;
        padding: 0.75rem 0.4rem;
        justify-content: center;
        text-align: center;
        font-size: 1rem;
    }

    .tab-link img {
        width: 34px;
        height: 34px;
    }
}

/* Stylizacja elementów menu */
.menu-section {
    max-width: 1400px; /* Zwiększona maksymalna szerokość menu */
    margin: 0 auto; /* Wyśrodkowanie menu */
    padding: 7rem 1rem 2rem; /* Dodanie odstępu po bokach */
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.menu-group-title {
    margin: 2.5rem 0 1rem;
}

.menu-notes {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #333;
    border-radius: 5px;
}

.menu-note {
    margin: 0.5rem 0;
    color: white;
    text-align: center;
}

.menu-error {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 5px;
}

.menu-item {
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 5px;
    gap: 1rem;
}

.menu-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.menu-item .menu-details {
    flex-grow: 1;
    margin-left: 1rem;
    text-align: left;
}

.menu-details h3 {
    color: #FFA500; /* Pomarańczowy kolor */
}

.menu-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    align-items: center;
    min-width: min(280px, 100%);
}

.menu-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 130px;
    margin-bottom: 10px;
    color: #FFA500; /* Pomarańczowy kolor */
}

.menu-price .size {
    display: inline-block;
    font-weight: bold;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .menu-item {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        grid-template-areas:
            "image details"
            "image prices";
        align-items: start;
        padding: 1rem 0;
        gap: 0.35rem 1rem;
        background: transparent;
        border-radius: 0;
    }

    .menu-item img {
        grid-area: image;
        width: 110px;
        height: 110px;
        min-height: 0;
        aspect-ratio: 1 / 1;
        display: block;
        border-radius: 0;
    }

    .menu-item .menu-details {
        grid-area: details;
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .menu-item .menu-prices {
        grid-area: prices;
        width: 100%;
    }

    .menu-prices {
        grid-template-columns: 1fr;
        min-width: 100%;
        justify-items: end;
    }

    .menu-price {
        width: auto;
        min-width: 0;
        justify-content: flex-end;
        margin-bottom: 0;
        padding: 0;
        background-color: transparent;
        border-radius: 0;
        color: #FFA500;
        font-size: 1rem;
        font-weight: 600;
    }

    .restaurant-info-section {
        border-radius: 1rem;
    }

    footer {
        text-align: center;
        padding: 1.25rem 1rem 2rem;
    }

    footer p {
        line-height: 1.5;
    }
}

/* Animacja fade-in dla zakładek */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.menu-details a{
    color: white; /* Biały tekst */
    text-decoration: underline; /* Podkreślenie */
    text-decoration-color: orange; /* Pomarańczowy kolor podkreślenia */
}
.menu-details a:hover {
    color: white; /* Utrzymanie białego tekstu przy najechaniu */
    text-decoration: underline; /* Utrzymanie podkreślenia przy najechaniu */
    text-decoration-color: #333; 
}
hr {
    border: none; /* Usunięcie domyślnej obramowania */
    height: 2px; /* Wysokość linii */
    background-color: #444; /* Kolor linii */
    margin: 2px 0; /* Margines góra-dół, aby dać przestrzeń nad i pod linią */
    opacity: 0.5; /* Lekka przezroczystość dla subtelnego efektu */
}
h2{
    color: #FFA500;
    font-size: 2rem;
    text-align: center;
}

/* Info Section Styles */
.restaurant-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #444;
    color: white;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    text-align: center;
}
.restaurant-info-section .restaurant-info-item {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}
@media (min-width: 768px) {
    .restaurant-info-section {
        flex-direction: row;
    }
    .restaurant-info-section .restaurant-info-item {
        margin: 0 1rem;
    }
}

/* Dodatkowe media query dla bardzo małych ekranów telefonów */
@media (max-width: 480px) {
    .info-box img {
        height: 260px;
    }

    .gallery-header {
        padding-top: 6.5rem;
    }

    .gallery-header h1 {
        font-size: 1.7rem;
    }

    .hero-text-slider {
        top: 44%;
    }

    .hero-text h2 {
        font-size: 1.9rem;
    }

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

    .about-text,
    .accommodation-text {
        padding: 1rem 0.9rem 1.25rem;
    }

    .about-text h1,
    .accommodation-text h2 {
        font-size: 1.8rem;
    }

    .tab-link {
        min-height: 92px;
        font-size: 0.95rem;
    }

    .menu-item img {
        width: 96px;
        height: 96px;
        aspect-ratio: 1 / 1;
    }

    .menu-details h3 {
        font-size: 1.45rem;
        line-height: 1.08;
    }

    .menu-item {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0.3rem 0.85rem;
        padding: 0.85rem 0;
    }

    .menu-price {
        font-size: 1rem;
    }

    #scrollToTopBtn {
        left: 16px;
        bottom: 16px;
    }

    #scrollToTopBtn img {
        width: 34px;
        height: 34px;
    }

    .call-fab {
        right: 16px;
        bottom: 16px;
        font-size: 30px;
    }
}

/* ===== Podstrony prawne (polityka prywatności / cookies) ===== */
.legal-section {
    background-color: #333;
    color: #f0f0f0;
    padding: 9rem 1rem 4rem;
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-container h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.legal-container h2 {
    font-size: 1.4rem;
    margin: 2rem 0 0.6rem;
    color: #FFA500;
}

.legal-container p,
.legal-container li {
    color: #ddd;
}

.legal-container ul {
    padding-left: 1.4rem;
    margin: 0.4rem 0 1rem;
}

.legal-container li {
    margin-bottom: 0.5rem;
}

.legal-container a {
    color: #FFA500;
    text-decoration: underline;
}

.legal-container a:hover {
    color: #ffb733;
}

.legal-updated {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .legal-section {
        padding: 7.5rem 1rem 3rem;
    }
    .legal-container h1 {
        font-size: 1.9rem;
    }
    .legal-container h2 {
        font-size: 1.2rem;
    }
}

/* ===== Linki prawne w stopce (dolny pasek) ===== */
.footer-legal {
    margin: 0;
    font-size: 0.82rem;
}

.footer-legal a {
    color: #c9c9c9;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: #FFA500;
    text-decoration: underline;
}

.footer-legal .sep {
    color: #555;
    margin: 0 0.55rem;
}

/* Dyskretny link do panelu admina w dolnym pasku */
.footer .admin-link {
    margin: 0;
    font-size: 0.78rem;
    color: #777;
    text-decoration: none;
    opacity: 0.7;
    transition: color 0.3s, opacity 0.3s;
}

.footer .admin-link:hover,
.footer .admin-link:focus-visible {
    color: #FFA500;
    opacity: 1;
}

/* ===== Baner zgody na cookies ===== */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 2rem);
    max-width: 720px;
    background-color: #1c1c1c;
    color: #f0f0f0;
    border: 1px solid rgba(255, 165, 0, 0.35);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    padding: 1.4rem 1.5rem;
    z-index: 4000;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-banner h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: #fff;
}

.cookie-banner p {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #ddd;
}

.cookie-banner a {
    color: #FFA500;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cookie-btn {
    flex: 1 1 auto;
    min-width: 150px;
    padding: 0.7rem 1.1rem;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.cookie-btn:active {
    transform: translateY(1px);
}

.cookie-btn-accept {
    background-color: #FFA500;
    color: #222;
}

.cookie-btn-accept:hover {
    background-color: #ffb733;
}

.cookie-btn-reject {
    background-color: #3a3a3a;
    color: #f0f0f0;
}

.cookie-btn-reject:hover {
    background-color: #4a4a4a;
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1.2rem 1.1rem;
    }
    .cookie-actions {
        flex-direction: column;
    }
}

/* ===== Placeholder mapy (przed zgodą na cookies) ===== */
.map-consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    width: 100%;
    min-height: 300px;
    padding: 2rem 1.5rem;
    background-color: #2a2a2a;
    color: #ddd;
    box-sizing: border-box;
}

.map-consent-placeholder .svg-icon {
    width: 2.2rem;
    height: 2.2rem;
    color: #FFA500;
    margin-bottom: 0.75rem;
}

.map-consent-placeholder p {
    margin: 0;
    max-width: 420px;
    line-height: 1.5;
}

.map-consent-load {
    margin-top: 0.3rem;
    padding: 0.6rem 1.3rem;
    border: none;
    border-radius: 8px;
    background-color: #FFA500;
    color: #222;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.map-consent-load:hover {
    background-color: #ffb733;
}

/* ===== Lightbox (własny, zastąpił lightbox2 + jQuery) ===== */
.mlb-no-scroll {
    overflow: hidden;
}

.mlb-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.mlb-overlay.is-open {
    display: flex;
    animation: mlbOverlayIn 0.25s ease;
}

/* tło przygasa, a zdjęcie wskakuje z lekkim powiększeniem i zanikiem */
@keyframes mlbOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mlbZoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.mlb-overlay.is-open .mlb-figure {
    animation: mlbZoomIn 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* delikatny fade przy zmianie zdjęcia (strzałki / klawiatura) */
.mlb-image.mlb-fade {
    animation: mlbOverlayIn 0.25s ease;
}

/* zamykanie — tło i zdjęcie zanikają (odwrotność otwierania) */
@keyframes mlbOverlayOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes mlbZoomOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.92); }
}

.mlb-overlay.mlb-closing {
    animation: mlbOverlayOut 0.22s ease forwards;
}

.mlb-overlay.mlb-closing .mlb-figure {
    animation: mlbZoomOut 0.22s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .mlb-overlay.is-open,
    .mlb-overlay.is-open .mlb-figure,
    .mlb-image.mlb-fade,
    .mlb-overlay.mlb-closing,
    .mlb-overlay.mlb-closing .mlb-figure {
        animation: none;
    }
}

.mlb-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
    max-height: 88vh;
}

.mlb-image {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    background: #222;
}

.mlb-caption {
    margin-top: 0.75rem;
    color: #eee;
    font-size: 1rem;
    text-align: center;
    max-width: 90vw;
}

.mlb-counter {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #bbb;
    font-size: 0.9rem;
}

.mlb-close,
.mlb-prev,
.mlb-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
}

.mlb-close:hover,
.mlb-prev:hover,
.mlb-next:hover {
    color: #FFA500;
    background: rgba(0, 0, 0, 0.6);
}

.mlb-close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
}

.mlb-prev,
.mlb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 64px;
    font-size: 2rem;
    border-radius: 6px;
}

.mlb-prev {
    left: 1rem;
}

.mlb-next {
    right: 1rem;
}

@media (max-width: 600px) {
    .mlb-prev,
    .mlb-next {
        width: 40px;
        height: 52px;
        font-size: 1.5rem;
    }

    .mlb-close {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
}

/* ===== Dostępność: skip-link + widoczny focus dla klawiatury ===== */
/* Link "Przejdź do treści" — ukryty, pojawia się po wejściu Tabem */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3000;
    transform: translateY(-120%);
    background: #FFA500;
    color: #222;
    padding: 0.6rem 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 0.4rem 0;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid #222;
    outline-offset: 2px;
}

/* Wyraźna obwódka tylko przy nawigacji klawiaturą (nie przy kliknięciu myszką) */
:focus-visible {
    outline: 2px solid #FFA500;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Cel skip-linka (<main>) nie ma pokazywać obwódki po przeskoku */
[tabindex="-1"]:focus {
    outline: none;
}
