:root {
    --color-yellow: #f8c000;
    --color-orange: #ff9800;
    --color-green-light: #4caf50;
    --color-green-dark: #4682B4;
    --color-red: #d9534f;
    --color-text-dark: #333;
    --color-text-light: #fff;
    --color-border: #ddd;
    --color-background-light: #f5f5f5;
    --color-background-white: #fff;
}

body {
    font-family: "Work Sans", sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-background-white);
    color: black;
    font-size: 14px;
}

.header-main, main, .footer-main {
    margin: 0 auto;
    padding: 0;
}

h3, h4 { margin: 0; font-weight: bold; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }

.desktop-only { display: block; }


.header-main {
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    background-color: #F5F5F5;
    border-bottom: 2px solid black;
}


.filter-wrapper {
    /* Już nie potrzebujemy tutaj position: relative */
}

.filter-style {
    /* Style przycisku bez zmian */
    width: 100%;
    padding: 15px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.filter-container {
    /* KLUCZOWE ZMIANY */
    position: absolute;
    top: 0; /* Pozycja pionowa będzie ustawiona przez JS */
    left: 0;
    right: 0; /* Użycie left: 0 i right: 0 rozciąga element na 100% szerokości */
    z-index: 10;

    max-height: 0;
    overflow: hidden;
    background-color: #fafafa;
    border: 1px solid #ddd;
    box-sizing: border-box;
    transition: max-height 0.5s ease-in-out;
}

.filter-container.active {
    max-height: 1000px;
    border-bottom: 1px solid #ddd;
}

.filter-content {
    padding: 20px;
}


.filter-panel {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    width: 100%;
    padding: 20px 25px;
    box-sizing: border-box;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-title {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.clear-filters {
    font-size: 12px;
    text-decoration: none;
    color: #888;
    font-weight: 500;
}

.clear-filters:hover {
    color: #333;
}

/* --- Sekcje: "SEKCJA" i "LOKALIZACJA" --- */
.section-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.filter-section:last-of-type {
    margin-bottom: 25px;
}

/* --- Grupa checkbox + etykieta --- */
.checkbox-group {
    display: flex;
    align-items: flex-start; /* Lepsze dla wieloliniowych etykiet */
    padding-bottom: 30px;
    padding-top: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.checkbox-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.checkbox-group label {
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #555;
}

/* --- Wygląd checkboxa --- */
.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    margin: 2px 15px 0 0; /* Górny margines do wyrównania z tekstem */
    font: inherit;
    color: currentColor;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    flex-shrink: 0; /* Zapobiega kurczeniu się checkboxa */
    cursor: pointer;
}
.checkbox-group input[type="checkbox"]:checked {
    background-color: #333;
    border-color: #333;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}

/* --- Przycisk "SZUKAJ" --- */
.search-button {
    width: 100%;
    padding: 15px;
    background-color: #e9e9e9;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #dcdcdc;
}








/* Wrapper dla całego filtra mobilnego */
.filter-mobile {
    display: flex;
    align-items: center;
}

/* Każda grupa wewnątrz filtra */
.filter-mobile-group {
    display: flex;
    align-items: center;
    transition: background-color 0.25s ease;
}

/* Sekcja z datami (dropdown) */
.dates-mobile {
    position: relative;          /* To umożliwia absolutne pozycjonowanie menu w środku */
    width: 100%;                /* Możesz zmienić np. na 100% dla pełnej szerokości */
}

/* Ukrycie checkboxa (przycisku kontrolującego dropdown) */
.nav input[type="checkbox"] {
    display: none;
}

/* Lista, w której znajduje się etykieta kliknięcia */
.toggle {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toggle label {
    display: flex;
    align-items: center;          /* wyrównanie pionowe */
    justify-content: center;      /* wyrównanie poziome dla całości */
    padding: 10px 30px 10px 10px; /* Dodatkowy padding z prawej strony dla strzałki */
    cursor: pointer;
    transition: background 0.25s ease;
    text-align: center;
    position: relative;           /* Dla absolutnego pozycjonowania strzałki */
}

/* Efekt hover na przycisku */
.toggle label:hover {
    background: #F5F5F5;
}

.toggle label .toggle-arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    position: absolute;
    right: 10px;
    width: 11px;
    height: 6px;
}

/* Obrót strzałki przy rozwinięciu */
.nav input[type="checkbox"]:checked + .toggle label .toggle-arrow {
    transform: rotate(180deg);
}

/* Lista rozwijana */
.links {
    list-style: none;
    margin: 2px 0 0 0;
    padding: 0;

    position: absolute;          /* Pozycjonowanie względem .dates-mobile */
    top: 100%;                   /* Tuż pod przyciskiem */
    left: 0;
    width: calc(100% - 0px);                 /* Taka sama szerokość jak .dates-mobile */
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid black;
    border-right: 2px solid black;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    z-index: 50;
}

/* Widoczne menu po kliknięciu */
.nav input[type="checkbox"]:checked ~ .links {
    max-height: 420px;
    opacity: 1;
}

/* Każdy element listy w dropdownie */
.links li {
    border-top: 1px solid #eee;
}

/* Pierwszy element bez górnej krawędzi */
.links li:first-child {
    border-top: none;
}

/* Zawartość w liście (klikany element) */
.links li div {
    padding: 10px 12px;
    background: #fff;
    cursor: pointer;
    transition: background 0.25s ease;
}

/* Efekt hover na elementach listy */
.links li div:hover {
    background: #f0f0f0;
}

/* Przycisk FILTRUJ obok dropdowna */
.filter-mobile-group-button .filter-button {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.25s ease;
}

/* Efekt hover na przycisku FILTRUJ */
.filter-mobile-group-button .filter-button:hover {
    /* background: #F5F5F5; */
}

@media (min-width: 768px) {
    .mobile-only {
        display: none!important;
    }

}
/* Responsywność — na węższych ekranach */
@media (max-width: 520px) {
    .dates-mobile {
        width: calc(100vw - 120px);  /* Dopasowanie szerokości dropdowna do ekranu */
    }

    .filter-mobile {
        justify-content: space-between;
    }

    .filter-mobile-group-button .filter-button {
        padding: 10px 12px;
        font-size: 13px;
    }
}



.logo-img {
    width: clamp(150px, calc(30vw + 100px), 550px);
    max-width: 550px;
    height: auto;
}


.step-img {
    width: clamp(150px, calc(30vw + 100px), 550px);
    max-width: 550px;
    height: auto;
}

.festival-dates {
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.2;
}

.director-note {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-decoration: underline;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
    font-size: 0.85em;
    position: relative;
    padding: 0 5px;
}

.step.active {
    color: var(--color-text-dark);
}

.step .number {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #aaa;
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1em;
}

.step.active .number {
    background-color: var(--color-text-dark);
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12.5px;
    left: 100%;
    width: 30px;
    height: 2px;
    background-color: #ddd;
    z-index: -1;
}
.step:not(:last-child).active::after {
    background-color: var(--color-text-dark);
}

.promoted-content {
    padding: 0 20px;
}

.promoted-shows {
    border-bottom: 1px solid black;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;


    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* stary Edge/IE */
}

.promoted-shows::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.promoted-shows.grabbing {
    cursor: grabbing;
}

.show-card {
    flex: 1;
    padding: 25px 20px;
    text-align: left;
    color: black;
    border-radius: 0;
    height: 100px;
    max-width: 500px;
    cursor: pointer;
    font-size: 0.9em;
    border: 2px solid black;
}

.show-details{
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}


.show-card h3 {
    font-size: 30px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.show-card p {
    font-size: 20px;
    font-weight: 700;
}

.yellow { background-color: var(--color-yellow);}
.orange { background-color: var(--color-orange);}
.green-light { background-color: var(--color-green-light); }
.green-dark { background-color: var(--color-green-dark); }
.red { background-color: var(--color-red); }

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F5F5F5;
    padding: 10px 20px;
    margin-bottom: 20px;
    gap: 15px;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 50px;
}

.filters-bar label {
    font-weight: bold;
}

.filters-bar select {
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    min-width: 150px;
}

/* Custom Multiselect */
.custom-multiselect {
    position: relative;
    min-width: 240px;
}

.custom-multiselect-button {
    width: 100%;
    padding: 8px 35px 8px 15px;
    border: 1px solid #A7A5A5;
    background-color: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    position: relative;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.custom-multiselect-button.has-selection {
    font-weight: 700;
}

.custom-multiselect-button:after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 20px;
    transition: transform 0.3s;
}

.custom-multiselect-button.active:after {
    transform: translateY(-50%) rotate(-90deg);
}

.custom-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #A7A5A5;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    z-index: 1000;
    transition: max-height 0.3s ease;
}

.custom-multiselect-dropdown.active {
    max-height: 300px;
    overflow-y: auto;
}

.custom-multiselect-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-multiselect-option label {
    cursor: pointer;
    flex: 1;
}

.custom-multiselect-option:hover {
    background-color: #f5f5f5;
}

.custom-multiselect-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #333;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.custom-multiselect-option input[type="checkbox"]:checked {
    background-color: #333;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}

.custom-multiselect-clear {
    padding: 10px 15px;
    border-top: 1px solid #D9D9D9;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #fff;
}

.custom-multiselect-clear:hover {
    opacity: 0.7;
}

.custom-multiselect-clear:before {
    content: '×';
    font-size: 18px;
}

.selection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

.checkbox-label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.remove-filters {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
}

.cart-icon {
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 20px;
    position: relative;
    display: none; /* Hidden by default, shown when cart has items */
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #000;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    transform: translate(25%, -25%);
}

.schedule-container {
    display: flex;
    background-color: var(--color-background-white);
    min-height: 800px;
}

.filters-left {
    width: 250px;
    padding: 10px 0 10px 10px;
    border-right: 1px solid var(--color-border);
    display: grid;
    grid-template-rows: repeat(30, 20px);
    align-items: start;
    row-gap: 0;
}

.time-label {
    grid-row: span 2;
    font-weight: bold;
    font-size: 0.9em;
    padding-top: 2px;
    align-self: start;
    height: 100%;
}

.filters-left .checkbox-label {
    font-weight: normal;
    font-size: 0.85em;
    margin-left: 10px;
    grid-row: span 2;
    align-self: end;
    margin-bottom: 2px;
}
.filters-left .checkbox-label.clear-btn {
    align-self: start;
    margin-top: 2px;
}

.schedule-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 50px repeat(30, 20px);
    grid-auto-flow: row;
}

.day-header {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid #eee;
    background-color: var(--color-background-light);
    font-weight: bold;
    grid-row: 1;
    font-size: 0.9em;
}

.day-header:last-child {
    border-right: none;
}

.schedule-grid > div {
    border-right: 1px solid #eee;
}
.schedule-grid > div:nth-child(6n) {
    border-right: none;
}

.main-content {
}

.event {
    z-index: 10;
    margin: 1px;
    padding: 5px 10px;
    color: var(--color-text-light);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    font-size: 0.8em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.event.yellow, .event.orange {
    color: var(--color-text-dark);
}

.event h4 {
    margin: 0 0 3px 0;
    font-size: 1.1em;
    line-height: 1.1;
}

.event p {
    margin: 0;
    font-size: 0.8em;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 2px solid black;
    line-height: 1.4;
    background-color: #F5F5F5;
    color: black;
    height: 120px;

    font-size: 12px;
    font-weight: 400;
}

.contact-info, .brand-info, .social-media {
    flex: 1;
    padding: 0 10px;
}
.contact-info { text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.brand-info { text-align: center; }
.social-media { text-align: right;
    height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end }

.brand-info img {
    height: 80px;
    margin-bottom: 5px;
}
.right-filters{
    margin-left: auto;
}

.social-media .icons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 5px 0 10px 0;
    font-size: 1.2em;
}

/* Floating cart button for both mobile and desktop */
.floating-cart-mobile {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    background-color: #f8c000;
    border-radius: 50%;
    display: none; /* Hidden by default, shown when cart has items */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    border: 3px solid #000;
}

.floating-cart-mobile.show {
    display: block !important;
}

.floating-cart-mobile i {
    font-size: 22px;
    color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.floating-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #d9534f;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #fff;
    transform: translate(25%, -25%);
}




.schedule-wrapper {
    position: relative;
}

/* Sticky scrollbar container */
.sticky-scrollbar-container {
    position: sticky;
    top: 0;
    z-index: 150;
    background-color: white;
    padding-left: 75px;
    padding-right: 100px;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.sticky-scrollbar {
    width: 100%;
    height: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    border-bottom: 2px solid #d0d0d0;
    position: relative;
    cursor: grab;

    /* Firefox scrollbar styling */
    scrollbar-width: auto;
    scrollbar-color: #707070 #e0e0e0;
}

.sticky-scrollbar:hover {
    background: #eeeeee;
}

.sticky-scrollbar:active {
    cursor: grabbing;
}

/* Wskaźnik "przeciągnij" - strzałki po bokach */
.sticky-scrollbar::before,
.sticky-scrollbar::after {
    content: '◄ ►';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    pointer-events: none;
    font-weight: bold;
}

.sticky-scrollbar::before {
    content: '◄';
    left: 15px;
}

.sticky-scrollbar::after {
    content: '►';
    right: 15px;
}

.sticky-scrollbar:hover::before,
.sticky-scrollbar:hover::after {
    opacity: 0.8;
    color: #333;
}

.sticky-scrollbar-content {
    height: 1px;
    /* Szerokość będzie ustawiana przez JS */
}

/* Stylizacja scrollbara - zawsze widoczny */
.sticky-scrollbar::-webkit-scrollbar {
    height: 30px;
}

.sticky-scrollbar::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 4px;
    border: 1px solid #d0d0d0;
}

.sticky-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom,
        #b0b0b0 0%,
        #909090 50%,
        #808080 100%);
    border: 2px solid #f5f5f5;
    background-clip: padding-box;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(0,0,0,0.1),
        0 1px 3px rgba(0,0,0,0.2);
    min-width: 60px;
}

.sticky-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom,
        #909090 0%,
        #707070 50%,
        #606060 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 0 rgba(0,0,0,0.15),
        0 1px 4px rgba(0,0,0,0.3);
}

.sticky-scrollbar::-webkit-scrollbar-thumb:active {
    background: linear-gradient(to bottom,
        #707070 0%,
        #505050 50%,
        #404040 100%);
}

.schedule-content {
    padding-left: 75px;
    padding-right: 100px;
}

/* Container for the table to allow scrolling on small screens */
.schedule-container {
    width: 100%;
    height: 800px; /* Stała wysokość dla scrollowania pionowego */
    overflow-x: auto; /* Scroll poziomy widoczny */
    overflow-y: auto; /* Scroll pionowy */
    cursor: grab;
    user-select: none;
}

/* Ukrycie domyślnego scrollbara kontenera */
.schedule-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.schedule-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.schedule-container.grabbing {
    cursor: grabbing;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: #fff;
    border-spacing: 0;
}

/* Header Styles */
th {
    background-color: #ffffff;
//border-bottom: 1px solid #ddd;
    padding: 12px 0;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: #555;
    position: sticky;
    top: 0;
    z-index: 100;
}

.day-label {
    font-weight: 400;
    font-size: 12px;

}

.date-label {
    font-weight: 700;
    font-size: 16px;


}

/* Cell Styles */
td {
//border: 1px solid #C9D3DA;
    position: relative;
    padding: 0;
    height: 20px; /* Core requirement: height per hour slot */
    vertical-align: top;
    background-color: #F8F8F8;
    min-width: 140px;
    border-right: 1px solid #C9D3DA; /* Pionowa siatka między dniami */
}

/* Usunięcie prawej ramki z ostatniej kolumny w każdym rzędzie */
td:last-child {
    border-right: none;
}

/* Pozioma siatka co pełną godzinę - dla rzędów o ID kończącym się na "00" (pełne godziny) */
tr[id$="00"] td {
    border-top: 1px solid #C9D3DA;
}

/* Time Column Styles */
.time-col {
    width: 60px;
    height: 10px;
    text-align: center;
    font-size: 12px;
    color: #777;
//vertical-align: middle;
    background-color: white;
    padding: 0;
    border-right: none !important; /* Brak pionowej ramki dla kolumny z czasem */
    border-top: none !important; /* Brak poziomej ramki dla kolumny z czasem */
    border-bottom: none !important; /* Brak poziomej ramki dla kolumny z czasem */
}

/* Event Block Styles */
.event {
    color: #333;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    overflow: hidden;
}

.repertoire-event {
    cursor: pointer;
}

.repertoire-event h3:first-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.event-time {
    font-weight: bold;
    margin-bottom: 4px;
}

.event-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.event-details {
    font-size: 11px;
    color: #444;
}


@media (max-width: 992px) {
    .header-main, main, .footer-main {
        padding: 0;
    }


    .progress-bar {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    body { background-color: var(--color-background-white); }
    .header-main, main, .footer-main { max-width: 100%; padding: 0; }

    .logo-container { margin-bottom: 5px; }
    .festival-dates { font-size: 1em; }


    .show-available-content-mobile{
        display: flex; flex-direction: row; justify-content: center; width: 100%
    }

    .show-available-content {
        padding: 10px 0; border-bottom: 1px solid black; font-size: 20px;
    }

    .progress-bar {
        gap: 10px;
        padding: 10px 0;
        margin-bottom: 0;
        border-bottom: none;
    }
    .step { font-size: 0.7em; }
    .step .number { width: 20px; height: 20px; }
    .step .text { line-height: 1.1; }
    .step:not(:last-child)::after { display: none; }



    .director-note {
        font-size: 20px;
        margin-top: 20px;
    }

    .filters-bar {
        padding: 15px 10px;
        margin-bottom: 10px;
        background-color: #F5F5F5;
    }

    .mobile-day-select {
        display: flex;
        align-items: center;
        border: 1px solid var(--color-border);
        padding: 8px 10px;
        border-radius: 3px;
        font-weight: bold;
        gap: 10px;
        font-size: 14px;
    }

    .filter-mobile {
        display: flex;
        flex-direction: row;
        height: 40px;
    }

    .filter-mobile-group {
        display: flex;
        flex: 1;
        border-bottom: 2px solid black;
        border-top: 2px solid black;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .filter-mobile-group-button {
        border-left: 2px solid black;
    }

    .filter-button {
        color: black;
        border: none;
        font-weight: 400;
        font-size: 14px;
        background: none;
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
    }

    .filter-icon {
        height: 12px;
        width: auto;
        order: 2;
        display: block;
    }

    /* Hide filter icon when panel is active */
    .filter-icon.hidden {
        display: none;
    }

    .filter-toggle-arrow {
        flex-shrink: 0;
        transition: transform 0.25s ease;
        width: 11px;
        height: 6px;
        order: 3;
        margin-left: 5px;
        display: none;
        transform: rotate(180deg); /* Already rotated up */
    }

    /* Show filter arrow when panel is active */
    .filter-toggle-arrow.active {
        display: block;
    }

    .mobile-filter-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: #000;
        color: #fff;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 10px;
        font-weight: 700;
        margin-left: 4px;
        order: 4;
    }

    .right-filters {
        gap: 50px;
    }
    .filters-bar .checkbox-label {
        font-size: 0.9em;
        order: -1;
    }
    .cart-icon {
        padding: 0;
        font-size: 1.8em;
    }

    .mobile-schedule-list {
        padding: 0 20px;
    }

    .day-separator {
        text-align: center;
        font-size: 1.5em;
        margin: 20px 0 10px 0;
        font-weight: 900;
    }

    .mobile-event {
        display: flex;
        align-items: stretch;
        color: var(--color-text-light);
        border: 2px solid black;
        margin-bottom: 15px;
        padding: 15px;
        position: relative;
        cursor: pointer;
    }
    .mobile-event.yellow, .mobile-event.orange {
        color: var(--color-text-dark);
    }

    .mobile-event-time {
        font-size: 1.5em;
        font-weight: bold;
        padding-right: 15px;
        border-right: 1px solid rgba(255, 255, 255, 0.5);
        display: flex;
        align-items: center;
    }
    .mobile-event.yellow .mobile-event-time, .mobile-event.orange .mobile-event-time {
        border-right: 1px solid rgba(0, 0, 0, 0.2);
    }

    .mobile-event-details {
        flex-grow: 1;
        padding-left: 15px;
        color: black
    }

    .mobile-event-details h3 {
        font-size: 1.2em;
        margin-bottom: 5px;
    }

    .mobile-cart-icon {
        position: absolute;
        bottom: 5px;
        right: 10px;
        font-size: 1.8em;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
    .contact-info, .brand-info, .social-media {
        text-align: center;
        padding: 5px 0;
    }
    .social-media-item {
        display: flex;
        height: 100%;
        flex-direction: column;
    }
    .social-media .icons {
        align-items: end;
        justify-content: center;
    }
}

/* ========================================
   MODAL STYLES
   ======================================== */

.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    background-color: white;
    width: 100%;
    max-width: 700px;
    max-height: 75vh; /* Maksymalna wysokość */
    overflow-y: hidden; /* Bez scrolla tutaj */
    border: 2px solid black;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: black;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f0f0f0;
}

.modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Bez scrolla na dużych ekranach */
    flex: 1;
    min-height: 0;
}

@media (max-height: 900px) {
    .modal-body {
        overflow-y: auto; /* Scroll dla małych ekranów */
    }
}

.modal-image-container {
    position: relative;
    width: 100%;
    background: black;
    flex-shrink: 0; /* Obrazek nie kurczy się */
}

.modal-event-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.modal-info-container {
    padding: 30px;
    background-color: white;
    flex: 1; /* Zajmuje przestrzeń na dużych ekranach */
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-height: 900px) {
    .modal-info-container {
        flex: none; /* Nie kurczy się - pozwala body scrollować */
        flex-shrink: 0;
        overflow: visible;
    }
}

.modal-header-info {
    margin-bottom: 20px;
    flex-shrink: 0; /* Nie kurczy się */
}

@media (min-width: 769px) {
    .modal-header-info {
        margin-bottom: 10px;
    }
}

.modal-category {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.modal-event-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.modal-buy-button-top {
    width: 100%;
    padding: 15px;
    background-color: #f8c000;
    color: black;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 2px solid black;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
    margin-bottom: 20px;
    flex-shrink: 0; /* Nie kurczy się */
}

.modal-buy-button-top:hover {
    background-color: #e0b000;
}

.modal-buy-button-top.no-tickets {
    background-color: #888888;
    color: white;
}

.modal-buy-button-top.no-tickets:hover {
    background-color: #777777;
}

.modal-details-grid {
    margin-bottom: 20px;
    flex-shrink: 0; /* Nie kurczy się */
}

/* Scrollowalna część z opisem */
.modal-scrollable-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Desktop layout - details left, button right */
@media (min-width: 769px) {
    .modal-buy-button-top.desktop-only {
        position: absolute;
        right: 30px;
        top: 0;
        width: 200px;
        margin-bottom: 0;
    }

    .modal-details-grid {
        position: relative;
        padding-right: 220px; /* Space for button */
    }

    .modal-details-left {
    }
}

.modal-info-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 18px;
}

.modal-label {
    font-weight: 400;
    color: #333;
    margin-right: 5px;
    flex-shrink: 0; /* Etykieta nie kurczy się */
}

.modal-value {
    font-weight: 700;
    color: #000;
    word-break: break-word; /* Zawija długie słowa */
}

.modal-description {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.modal-description.expanded {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-description-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
}

.modal-description-content p {
    margin-bottom: 10px;
}

.modal-description-content.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.modal-description-content.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.modal-read-more {
    background: none;
    border: none;
    color: black;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.modal-meta-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0; /* Zawsze widoczne na dole */
    background-color: white; /* Tło żeby przykryć treść pod spodem */
    margin-top: auto; /* Przesuwa się na dół */
}

.modal-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.modal-meta-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}


/* Mobile responsive styles for modal */
@media (max-width: 768px) {
    .event-modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-width: 3px;
    }

    .modal-event-image {
        height: 250px;
    }

    .modal-info-container {
        padding: 20px;
    }

    .modal-event-title {
        font-size: 24px;
    }

    .modal-buy-button-top {
        padding: 18px;
        font-size: 16px;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 28px;
    }
}

/* ========================================
   ERROR MODAL STYLES
   ======================================== */

.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.error-modal-content {
    position: relative;
    z-index: 2;
    background-color: white;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border: 2px solid black;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.error-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: black;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-modal-close:hover {
    background: #f0f0f0;
}

.error-modal-body {
    padding: 20px 0;
}

.error-modal-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.error-modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 30px 0;
}

.error-modal-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-block;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: scale(1.1);
}


/* Mobile responsive styles for error modal */
@media (max-width: 768px) {
    .error-modal-content {
        max-width: 100%;
        padding: 30px 20px;
    }

    .error-modal-title {
        font-size: 24px;
    }

    .error-modal-text {
        font-size: 14px;
    }

    .error-modal-close {
        width: 32px;
        height: 32px;
        font-size: 28px;
        top: 10px;
        right: 10px;
    }
}


.step-one {
    color: #2196f3;
}

.step-two {
    color: #f4a534;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #000;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.step-item.step-one{
    right: -20px;
}
.step-item.step-three{
    left: -50px;
}
.step-item.completed .step-circle {
    color: #000;
}

.step-item.completed .step-circle::after {
    content: "✓";
    position: absolute;
    color: #000;
    font-size: 20px;
}

.step-item.completed .step-circle span {
    display: none;
}

.step-item.active .step-circle {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.step-item.inactive .step-circle {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

.step-label {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    color: #000;
    text-align: center;
    white-space: nowrap;
}

.step-line {
    width: 200px;
    height: 2px;
    background-color: #000;
    margin: 0 -45px;
    position: relative;
    top: -20px;
    z-index: 1;
}

@media (max-width: 991px) {
    .step-line {
        width: 120px;
    }

    .step-label {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .main-nav-buttons-wrapper {
        gap: 50px;
    }

    .steps-container {
        padding: 20px 10px;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .step-line {
        width: 100px;
        top: -12px;
    }

    .step-label {
        font-size: 10px;
    }
    .step-item.step-one{
        right: 0;
    }
    .step-item.step-three{
        left: 0;
    }

    .step-label {
        font-size: 10px;
    }
}