   /* --- GŁÓWNE STYLE I RESET --- */
   :root {
    --main-blue: #000000;
    --hover-blue: #9d9d9d;
    --accent-red: #e94c3d;
}

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

html, body {
    height: 100%;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    margin: 0;
    padding: 0;
}

.expired {
    opacity: 0.5;
}

/* --- GŁÓWNY KONTENER (FLEXBOX) --- */
.main-container {
    width: 100%;
    height: 100%; /* Dokładnie 100% wysokości ekranu */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Rozdzielamy zawartość równomiernie */
    align-items: center;
    padding: 0.25rem; /* Jeszcze mniejsze padding na mobile */
    background: rgba(0, 0, 0, 0.2); /* Lekkie przyciemnienie dla lepszej czytelności */
    box-sizing: border-box; /* Include padding in height calculation */
    
    /* Tło responsywne */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top right; /* Pozycjonowanie od góry centrum */
    /* Domyślne tło (mobile) z fallbackiem na JPG */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('g/background-mobile.webp');
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        image-set(
            url('g/background-mobile.webp') 1x,
            url('g/background-mobile.jpg') 1x
        );
}

/* Mobile background positioning */
@media (max-width: 767px) {
    .main-container {
        background-position: top center;
    }
}


/* Spacer element to push content to bottom */
.spacer {
    flex: 1; /* Takes up all available space */
}

.privacy-link {
    margin-top: 2rem;
}

.lang-switch {
    opacity: 0.8;
    font-weight: 500;
    font-size: 1.15em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1rem;
}

.lang-switch a {
    padding: 10px;
    min-height: 44px; /* Minimalny target dotyku (Apple HIG) */
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.lang-switch a:hover {
    color: #fff;
}

.lang-switch a.active {
    color: #d19f5a;
    border-bottom-width: 2px;
    border-bottom-color: #d19f5a;
    font-weight: 900;
    padding-bottom: 4px;
}

.footer-nav {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4em;
}

.footer-nav a.active {
    color: #d19f5a;
    font-weight: 800;
}

@media (max-width: 768px) {
    .lang-switch a.active {
        padding-bottom: 0px;
    }
    
    /* Większe odstępy między przyciskami językowymi na telefonie (łatwiejsze klikanie) */
    .lang-switch {
        gap: 1rem;
    }
    .lang-switch a {
        padding: 10px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
    }
}

.booking-info {
    padding:1rem;
    /*
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    */
    border-radius: 4px;
    margin-right: calc(-1rem - 1px); 
}

.main-footer p {
    margin-bottom: .5rem;
}

/* Privacy link styling */
@media (max-width: 767px) {
    .privacy-link {
        margin-top: 0.5rem;
        font-size: 0.8rem;
    }


    .booking-info p,
    .booking-info a {
        font-size: 1.0em;
        margin: 0;
        padding: 0;
    }

    .main-footer p {
        margin-bottom: 0.25rem
    }

    .booking-info a {
       font-weight: 800;
    }

    .booking-info {
        align-items: center;
        padding:0.5rem;
        /*
        border: 1px solid rgba(255, 255, 255, 0.2);
        */
        border-radius: 4px;
        margin-right: auto; 
    }
}


/* Bottom content container */
.bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-shrink: 0; /* Prevents shrinking */
    max-height: calc(100svh - 0.5rem); /* Ensure it fits within viewport */
    overflow: hidden; /* Prevent overflow */
    box-sizing: border-box;
}

/* Tło dla tabletów */
@media (min-width: 768px) {
    .main-container {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
            url('g/background-tablet.webp');
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
            image-set(
                url('g/background-tablet.webp') 1x,
                url('g/background-tablet.jpg') 1x
            );
        padding: 1rem;
    }
}

/* Tło dla desktopów */
@media (min-width: 1200px) {
    .main-container {
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
            url('g/background-desktop.webp');
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
            image-set(
                url('g/background-desktop.webp') 1x,
                url('g/background-desktop.jpg') 1x
            );
        background-position: top right; /* Na desktopie centrum */
        justify-content: flex-start; /* Zmienione z center na flex-start */
        align-items: flex-start; /* Wyrównujemy do lewej */
        padding: 1rem;
    }
}

/* --- LISTA TRASY KONCERTOWEJ --- */
.tour-list {
    list-style: none;
    text-align: center;
    width: 100%;
    max-width: 280px; /* Jeszcze mniejsza szerokość na mobilce */
    margin-bottom: 0; /* Usunięty margines - spacing jest w footer */
    flex-shrink: 1; /* Allow shrinking if needed */
    display: flex;
    flex-direction: column;
    max-height: 38vh;
    position: relative;
}

.tour-list-scroll-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}


.tour-list-scroll {
    flex: 1;
    min-height: 0; /* Potrzebne do działania overflow w flex */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.tour-list-fixed {
    flex-shrink: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Na tablecie trochę większa */
@media (min-width: 768px) {
    .tour-list {
        max-width: 380px;
        max-height: 50vh;
    }
}

/* Na desktopie pozycjonujemy listę po lewej stronie */
@media (min-width: 1200px) {
    .bottom-content {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
    
    .tour-list {
        position: static;
        max-width: 350px;
        margin-bottom: 0;
        margin-left: 2rem;
        max-height: 65vh; /* Wyższa na desktopie */
    }
}

.tour-list li {
    list-style: none;
    text-align: left;
}


.tour-list li div,
.tour-list li a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.28rem 0.35rem;
    margin-bottom: 0.15rem;
    text-decoration: none;
    color: #ffffffc8;
    font-weight: 600;
    font-size: 1.1em; /* Jeszcze mniejsza czcionka */
    border-radius: 4px;
    /* Przezroczyste tło bez ramki */
    background-color: rgba(23, 37, 51, 0); 
    border: 1px solid transparent; /* Zmienione na 1px */
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

li.coming-soon-event {
    opacity: 0.5;
}

.tour-list {
    background: rgba(0, 0, 0, 0.4);
}

/* Na tablecie trochę większe */
@media (min-width: 768px) {
    .tour-list li div,
    .tour-list li a {
        gap: 0.6rem;
        padding: 0.5rem 0.65rem;
        margin-bottom: 0.28rem;
        font-size: 1.1em;
    }
}

.tour-list li a:hover,
.tour-list li a:focus {
    border: 1px solid rgba(255, 255, 255, 0.2); /* 1px ramka po najechaniu */
    transform: scale(1.03);
}

/* Blurry background element on hover */
.tour-list li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(23, 37, 51, 0.1); /* Semi-transparent background */
    backdrop-filter: blur(5px); /* Blur effect */
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1; /* Behind the content */
}

/* Ciemniejszy background na desktopie */
@media (min-width: 1200px) {
    .tour-list li a::before {
        background-color: rgba(23, 37, 51, 0.3); /* Ciemniejszy background na desktopie */
    }
}

.tour-list li a:hover::before,
.tour-list li a:focus::before {
    opacity: 1;
}

.date-box {
    background-color: var(--main-blue);
    padding: 0.15rem 0.3rem; /* Jeszcze mniejszy padding */
    border-radius: 3px;
    font-size: 0.6em; /* Jeszcze mniejsza czcionka */
    white-space: nowrap;
}

.date-soldout {
    background-color: var(--accent-red);
    padding: 0.15rem 0.3rem; /* Jeszcze mniejszy padding */
    border-radius: 3px;
    font-size: 0.6em; /* Jeszcze mniejsza czcionka */
    white-space: nowrap;
    font-weight: 800;
}

.date-soon {
    background-color: rgba(74, 144, 226, 0.5);
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    font-size: 0.55em;
    white-space: nowrap;
    font-style: italic;
}

.tour-section-label {
    margin-top: 1.45rem;
    margin-bottom: 0.15rem;
    margin-left: 0.75rem;
    text-align: left;
    opacity: 0.5;
}

.tour-section-label span {
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Na tablecie trochę większe */
@media (min-width: 768px) {
    .date-box {
        padding: 0.3rem 0.5rem;
        font-size: 0.8em;
    }
}

.location-box {
    text-align: left;
    font-size: 0.65em; /* Jeszcze mniejsza czcionka */
}

/* Na tablecie trochę większe */
@media (min-width: 768px) {
    .location-box {
        font-size: 0.85em;
    }
}

/* Specjalne odstępy dla wyróżnionych wydarzeń */

.tour-list .special-event {
    margin-top: 0.45rem; 
}


/* Stylowanie scrollbara listy tras */
.tour-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.tour-list-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.tour-list-scroll::-webkit-scrollbar-thumb {
    background: #483e30;
    border-radius: 3px;
}

.tour-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #483e30;
}

.tour-list .special-event-bottom {
    margin-top: 0.45rem;
}

/* Separator przed ostatnim wydarzeniem */
.tour-list .special-event-bottom::before {
    content: '';
    display: block;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: .3rem 0;
}

/* Na tablecie mniejsze odstępy */
@media (min-width: 768px) {
    .tour-list .special-event {
        margin-bottom: 0.6rem;
    }
    
    .tour-list .special-event-bottom {
        margin-top: 0.6rem;
    }
    
    .tour-list .special-event-bottom::before {
        margin: 0.4rem 0;
    }
}

/* --- FOOTER --- */
.main-footer {
    text-align: center;
    font-size: 0.65em; /* Jeszcze mniejsza czcionka na mobile */
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0; /* Prevents shrinking */
    padding: 0.25rem; /* Minimal padding */
}

/* Extra small mobile screens */
@media (max-height: 600px) {
    .main-container {
        padding: 0.1rem;
    }
    
    .main-footer {
        font-size: 0.6em;
        margin-top: 0.3rem;
        padding: 0.1rem;
    }
    
    
    .tour-list li a {
        padding: 0.18rem 0.28rem;
        margin-bottom: 0.12rem;
        font-size: 0.65em;
    }
    
    .date-box {
        padding: 0.1rem 0.25rem;
        font-size: 0.55em;
    }
    
    .location-box {
        font-size: 0.6em;
    }
}

/* Style dla telefonu - lepsze odstępy */
@media (max-width: 767px) {
    .main-footer {
        padding: 0.5rem; /* Większy padding na telefonie */
    }
    
}

/* Na tablecie trochę większe */
@media (min-width: 768px) {
    .main-footer {
        font-size: 0.85em;
    }
}

/* Na desktopie pozycjonujemy footer na dole po prawej */
@media (min-width: 1200px) {
    .main-footer {
        position: static;
        text-align: right;
        font-size: 0.9em;
        margin-top: 0;
        margin-right: 2rem;
        padding-bottom: 0;
    }
}



.main-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.main-footer a:hover {
    color: #fff;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(23, 37, 51, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.cookie-banner p {
    margin-bottom: 1rem;
    font-size: 0.9em;
}

.cookie-banner a {
    color: var(--hover-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner a:hover {
    color: #fff;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cookie-banner button {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#accept-cookies {
    background-color: var(--main-blue);
}

#accept-cookies:hover {
    background-color: var(--hover-blue);
}

#reject-cookies {
    background-color: transparent;
}

#reject-cookies:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-banner.hidden {
    display: none;
}

/* --- STYLE DLA POLITYKI PRYWATNOŚCI --- */
.privacy-policy {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    max-height: 80vh;
    text-shadow: none;
    position: relative;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-button:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.close-button:active {
    transform: scale(0.95);
}

.close-button svg {
    width: 20px;
    height: 20px;
}

/* Nadpisanie dla strony polityki prywatności */
body:has(.privacy-policy) {
    overflow: auto;
}

body:has(.privacy-policy) .main-container {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    justify-content: flex-start;
    padding-top: 2rem;
}

.privacy-policy h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--main-blue);
    padding-bottom: 0.5rem;
}

.privacy-policy h2 {
    color: var(--hover-blue);
    font-size: 1.5em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--main-blue);
    padding-left: 1rem;
}

.privacy-policy h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 1rem;
    text-align: center;
}

.privacy-policy ol,
.privacy-policy ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-policy li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.privacy-policy li ul,
.privacy-policy li ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.privacy-policy p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.privacy-policy strong {
    color: #fff;
    font-weight: 600;
}

.privacy-policy a {
    color: var(--hover-blue);
    text-decoration: none;
}

.privacy-policy a:hover {
    color: #fff;
    text-decoration: underline;
}

.disclaimer {
    background-color: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 4px;
    padding: 1rem;
    margin: 2rem 0;
}

.disclaimer p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.contact-info {
    background-color: rgba(37, 59, 83, 0.3);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.contact-info h2 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.contact-info h3 {
    color: var(--hover-blue);
    font-size: 1.1em;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-info {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

/* Responsywność dla polityki prywatności */
@media (max-width: 768px) {
    .privacy-policy {
        margin: 1rem;
        padding: 1rem;
        max-height: 85vh;
    }
    
    .privacy-policy h1 {
        font-size: 2em;
    }
    
    .privacy-policy h2 {
        font-size: 1.3em;
    }
    
    .privacy-policy ol,
    .privacy-policy ul {
        margin-left: 1rem;
    }
    
    .close-button {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        padding: 0.4rem;
    }
    
    .close-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Scrollbar styling dla polityki prywatności */
.privacy-policy::-webkit-scrollbar {
    width: 8px;
}

.privacy-policy::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.privacy-policy::-webkit-scrollbar-thumb {
    background: #483e30;
    border-radius: 4px;
}

.privacy-policy::-webkit-scrollbar-thumb:hover {
    background: #483e30;
}

/* --- STRONA KONTAKTOWA --- */
.contact-page-content {
    width: 100%;
    max-width: 280px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 0;
}

.contact-list h2 {
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.25rem;
    text-align: left;
}

.contact-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-label {
    font-size: 0.65em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
}

.contact-item a:hover {
    color: #fff;
}

@media (min-width: 768px) {
    .contact-page-content {
        max-width: 380px;
        padding: 2rem;
    }
}

@media (min-width: 1200px) {
    .contact-page-content {
        max-width: 350px;
        margin-left: 2rem;
        margin-right: auto;
    }
}