:root {
    --menu: #2e7d32; /*#2ecc71;*/
    --primary: #313131;
    --accent: #e74c3c; /* Kolor czerwonego biletu */
    --menu-hover: #e74c3c;
    --bg: #91CB62 ;/*#4a90e2; /*#4CBB17;*/
    --text: #333333;
    --panel-bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
/* body { background-color: var(--bg); color: var(--text); display: flex; flex-direction: column; min-height: 100vh; } */

body {
    margin: 0;
    padding: 0px; /* Przestrzeń wewnętrzna, aby liście nie zasłaniały tekstu */
    min-height: 100vh;
    box-sizing: border-box;
    background-color: var(--bg);
/* 
    border-style: solid;
    
    border-width: 100px; 
    border-image-source: url('https://eegecpstukwlmlfkbgfh.supabase.co/storage/v1/object/public/gallery/leaf_frame.png'); 
    
    border-image-slice: 200 fill; 
    border-image-repeat: round;*/
} 

/* GÓRNY PASEK */
header {
    background-color: var(--menu); color: white; padding: 15px 5%; font-size: 20px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.logo { font-size: 32px; font-weight: 700; color: white; text-decoration: none; cursor: pointer; /*-webkit-text-stroke: 1px #a6190a;*/}

/* --- NOWOŚĆ: STYLE DLA TRYBU ADMINISTRATORA (EDYCJI) --- */

/* Styl dla każdego elementu tekstowego, gdy admin włączy tryb edycji */
[contenteditable="true"] {
    outline: 2px dashed #3498db; /* Przerywana niebieska ramka wokół edytowalnych tekstów */
    outline-offset: 4px;
    border-radius: 4px;
    cursor: text; /* Zmiana kursora na tekstowy */
    transition: background-color 0.2s ease;
}

/* Styl, gdy najedziesz myszką na element do edycji */
[contenteditable="true"]:hover {
    background-color: rgba(52, 152, 219, 0.1); /* Delikatne niebieskie tło */
}

/* Styl w momencie, gdy klikniesz wewnątrz tekstu i zaczniesz pisać (focus) */
[contenteditable="true"]:focus {
    outline: 2px solid #2ecc71; /* Zmiana ramki na ciągłą zieloną podczas pisania */
    background-color: rgba(46, 204, 113, 0.1); /* Delikatne zielone tło */
}

/* Opcjonalny styl dla przycisku logowania ukrytego np. w stopce strony */
#btn-admin-login {
    width: 20px;
    height: 20px;
    position: fixed;
    bottom: 10px;
    right: 10px;
    opacity: 0; /* Przyciemniony, żeby nie rzucał się w oczy zwykłym użytkownikom */
    transition: opacity 0.3s;
}
#btn-admin-login:hover {
    opacity: 0.3; /* Podświetla się po najechaniu */
    cursor: pointer;
}

/* Ustawienie paska tak, aby tekst był po lewej, a przyciski po prawej */
#admin-save-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px !important; /* Dodatkowy margines po bokach */
    box-sizing: border-box;
}

/* Kontener na przyciski */
.admin-bar-buttons {
    display: flex;
    gap: 10px; /* Odstęp między przyciskami */
}

/* Wspólny styl dla przycisków admina */
.admin-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
}

.admin-btn:active {
    transform: scale(0.95); /* Efekt kliknięcia */
}

/* Zielony przycisk ZAPISZ */
.save-btn {
    background-color: #2ecc71;
    color: white;
}
.save-btn:hover {
    background-color: #27ae60;
}

/* Czerwony przycisk ANULUJ */
.cancel-btn {
    background-color: #e74c3c;
    color: white;
}
.cancel-btn:hover {
    background-color: #c0392b;
}

nav { display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-weight: 600; transition: 0.3s; cursor: pointer; }
.nav-links a:hover, .nav-links a.active { 
    color: red;
    /* -webkit-text-stroke: 1px black; */
}

.header-right { display: flex; align-items: center; gap: 20px; }
.weather-widget { background: rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 20px; font-size: 14px; display: flex; align-items: center; gap: 8px; }

.lang-switch { display: flex; gap: 5px; }
.lang-btn { background: none; border: 1px solid white; color: white; padding: 5px 10px; border-radius: 5px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.lang-btn.active { background-color: var(--accent); border-color: var(--accent); }
.menu-toggle { display: none; font-size: 24px; background: none; border: none; color: white; cursor: pointer; }

/* Stylizacja ikon pogodowych */
/* .fa-sun {
    color: #f1c40f !important; 
    filter: drop-shadow(0 0 4px rgba(241, 196, 15, 0.4));
}

.fa-cloud {
    color: #bdc3c7 !important;
}

.fa-cloud-sun {
    color: #f39c12 !important;
}

.fa-cloud-showers-heavy, .fa-cloud-rain {
    color: #3498db !important; 
}

.fa-bolt {
    color: #e67e22 !important; 
}

.fa-snowflake {
    color: #74b9ff !important; 
}

.fa-smog, .fa-cloud-meatball {
    color: #95a5a6 !important;
}

.fa-sun {
    animation: spinSun 20s linear infinite;
}
@keyframes spinSun {
    100% { transform: rotate(360deg); }
} */

/* UKŁAD STRONY */
.main-layout { display: flex; max-width: 1400px; width: 100%; margin: 30px auto; padding: 0 5%; gap: 30px; flex-grow: 1; }
.content-area { flex: 3; min-width: 0; }

/* 1. GŁÓWNY KONTENER STRONY - CZARNA RAMKA SOLID */
.page-section {
    display: none; 
    position: relative; /* Kluczowe dla prawidłowego działania ::before i ::after */
    padding: 35px; /* Duży wewnętrzny margines na tekst */
    border-radius: 10px; /* Taki sam promień jak w małych biletach */
    
    /* Czarna ostra krawędź – idealna kopia z .ticket-wrapper */
    background: 
        radial-gradient(circle at 0 0, transparent 20px, #000000 20px),
        radial-gradient(circle at 100% 0, transparent 20px, #000000 20px),
        radial-gradient(circle at 0 100%, transparent 20px, #000000 20px),
        radial-gradient(circle at 100% 100%, transparent 20px, #000000 20px);
    background-position: top left, top right, bottom left, bottom right;
    background-size: 51% 51%;
    background-repeat: no-repeat;
    /* background-color: #f5f7fa; */
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
}

/* Wymuszenie wyświetlania aktywnej sekcji + zapobieganie znikaniu */
.page-section.active { 
    display: block; 
    animation: fadeIn 0.4s ease forwards; 
}

/* 2. CZERWONE TŁO WEWNĘTRZNE – OSTRA KRAWĘDŹ SOLID */
.page-section::before {
    content: '';
    position: absolute;
    /* Przesunięcie o dokładnie 3px (tak jak ustawiłeś w galerii), tworzy czarny border na bokach */
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    z-index: 1; /* Wskakuje nad czarny, ale pod czerwony arkusz tekstowy */
    
    /* Czerwone ostre odcięcie (promień 19px dopasowany do czerni) */
    background: 
        radial-gradient(circle at 0 0, transparent 19px, var(--accent) 19px),
        radial-gradient(circle at 100% 0, transparent 19px, var(--accent) 19px),
        radial-gradient(circle at 0 100%, transparent 19px, var(--accent) 19px),
        radial-gradient(circle at 100% 100%, transparent 19px, var(--accent) 19px);
    background-position: top left, top right, bottom left, bottom right;
    background-size: 51% 51%;
    background-repeat: no-repeat;
}

/* 3. BIAŁY ARKUSZ POD TEKST */
/* Ponieważ wielki bilet ma w środku tekst, musimy upewnić się, że białe tło 
   oraz same teksty (h2, p, ul) lądują nad czerwonym tłem z ::before */
.page-section::after {
    content: '';
    position: absolute;
    /* Odsuwamy biały arkusz od krawędzi, by czerwony pas był ładnie widoczny */
    top: 25px; 
    left: 25px;
    right: 25px;
    bottom: 25px;
    background: var(--panel-bg);
    border-radius: 8px;
    z-index: 2; /* Nad czerwonym tłem */
    border-style: solid;
    border-color: #000000;
}

/* Wymuszenie, by wszystkie elementy tekstowe w środku przebiły się na sam wierzch */
.page-section > * {
    position: relative;
    z-index: 3; /* Nad białym arkuszem (z-index: 2) */
}

/* NOWA REGUŁA: sidebar również potrzebuje bezpiecznej animacji, aby nie znikał */
.sidebar-panel { 
    background: var(--panel-bg); 
    padding: 25px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    animation: fadeIn 0.4s ease forwards; 
}

/* ZAKTUALIZOWANA ANIMACJA: wymuszamy, by stan końcowy (opacity: 1) został na stałe */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Biały kontener wewnętrzny na tekst */
.page-section h2, 
.page-section p, 
.page-section img, 
.page-section ul, 
.page-section form, 
.page-section .contact-container {
    background-color: var(--panel-bg);
}

/* 
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
} */

h2 { color: var(--primary); margin-bottom: 20px; font-size: 28px; }
p { line-height: 1.7; color: #555; margin-bottom: 15px; }

/* SIDEBAR */
.sidebar { flex: 1; display: flex; flex-direction: column; gap: 30px; min-width: 320px; }
.sidebar-panel { background: var(--panel-bg); padding: 25px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.sidebar-panel h3 { color: var(--primary); margin-bottom: 15px; font-size: 18px; border-bottom: 2px solid var(--bg); padding-bottom: 8px; }

.notice-board ul { list-style: none; }
.notice-board li { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px; display: flex; gap: 10px; text-align: left; }
.notice-board li i { color: var(--accent); margin-top: 3px; }

.admin-editable-news {
    border: 1px dashed var(--primary-blue);
}


/* ==========================================================================
   W PEŁNI POPRAWIONY I STYLIZOWANY KALENDARZ (Z POPRAWNYMI KLASAMI)
   ========================================================================== */

/* Nagłówek kalendarza (Miesiąc + Strzałki nawigacji) */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 5px 10px;
}

.calendar-month-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-transform: capitalize;
}

/* Przyciski nawigacji miesięcy < oraz > */
.cal-nav-btn {
    background-color: var(--primary-blue);
    color: var(--text);
    border: none;
    padding: 6px 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.1s;
}

.cal-nav-btn:hover {
    background-color: var(--primary-blue-hover);
}

.cal-nav-btn:active {
    transform: scale(0.95);
}

/* Główna siatka kalendarza (7 kolumn) */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    font-size: 13px;
}

/* Nazwy dni tygodnia (Pn, Wt, Śr...) */
.day-name {
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    padding-bottom: 5px;
    font-size: 12px;
}

/* Styl pojedynczego zwykłego dnia */
.day {
    padding: 10px 5px;
    background: #ffffff;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    color: var(--text-dark);
    transition: background 0.2s, color 0.2s;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Puste kafelki wyrównujące początek miesiąca */
.day.empty {
    background: transparent;
    border: none;
}

/* Efekt najechania myszką na zwykły dzień (tylko jeśli nie jest pusty) */
.day:not(.empty):hover {
    background: #eef2f7;
    cursor: pointer;
}

/* Przykładowy styl dla dzisiejszego dnia */
/* .calendar-grid .day.today { */
.day.has-event { 
    border: 2px solid #3498db; /* Wyrazista niebieska ramka wokół dnia */
    font-weight: bold;
    color: #3498db;
    position: relative;
}

/* Opcjonalnie: mała kropka pod numerem dnia oznaczająca "dzisiaj" */
/* .calendar-grid .day.today::after { */
.day.has-event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #3498db;
    border-radius: 50%;
}

/* Dni posiadające aktywne wydarzenia (w kolorze var(--accent-green)) */
/* .day.has-event { */
.calendar-grid .day.today {
    border: 1px solid black;
    background-color: rgba(0, 131, 11, 0.952) !important;
    color: white !important;
    font-weight: 700;
    opacity: 0.4;
}

/* .day.has-event:hover { */
.calendar-grid .day.today:hover {
    background-color:  rgba(12, 72, 17, 0.952) !important;
}

/* Wizualna przerywana ramka wokół dni dla zalogowanego admina */
.admin-editable-day {
    border: 1px dashed var(--primary-blue);
}

/* --- INTERAKTYWNY DYMEK (TOOLTIP) POP-UP --- */
#calendar-tooltip {
    position: absolute;
    background-color: #2c3e50;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: none;
    line-height: 1.4;
    max-width: 200px;
}

/* --- LISTA OPISOWA WYDARZEŃ POD KALENDARZEM --- */
#calendar-events-list {
    margin-top: 20px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: left;
}

#calendar-events-list h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

#calendar-events-list ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

#calendar-events-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.9rem;
    color: var(--text-dark);
}

#calendar-events-list li:last-child {
    border-bottom: none;
}

#calendar-events-list li strong {
    color: var(--primary-blue);
    margin-right: 5px;
}

/* Informacja, gdy w danym miesiącu nie ma wydarzeń */
.no-events-info {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    margin: 0;
}

/* --- NOWA GALERIA: KARTA BILETOWA DLA KAŻDEGO ZDJĘCIA --- */
/* ZAKTUALIZOWANA GALERIA: Układ siatki dla biletów */
.grid-attractions { 
    display: grid; 
    /* Samoczynnie mieści bilety: minimum 280px szerokości, maks 3 w jednej linii na dużym ekranie */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 0px; 
    margin-top: 20px; 
    margin-left: 20px;
    margin-right: 20px;
    background: transparent !important; 
}
.grid-attractions::before { display: none; }

/* 1. GŁÓWNY KONTENER - CZARNA RAMKA SOLID */
.ticket-wrapper {
    position: relative; 
    padding: 11px; /* Grubość czerwonego marginesu + 1px na ramkę */
    border-radius: 10px;
    
    /* Czarna ostra krawędź. Zapis 'transparent 20px, #000000 20px' 
       odcina kolor bez rozmycia, dając efekt "border-style: solid" */
    background: 
        radial-gradient(circle at 0 0, transparent 20px, #000000 20px),
        radial-gradient(circle at 100% 0, transparent 20px, #000000 20px),
        radial-gradient(circle at 0 100%, transparent 20px, #000000 20px),
        radial-gradient(circle at 100% 100%, transparent 20px, #000000 20px);
    background-position: top left, top right, bottom left, bottom right;
    background-size: 51% 51%;
    background-repeat: no-repeat;
    
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
}

/* 2. CZERWONE TŁO WEWNĘTRZNE - DOPASOWANE CO DO PIKSELA */
.ticket-wrapper::before {
    content: '';
    position: absolute;
    /* Przesunięcie o dokładnie 1px tworzy idealną, ostrą obwódkę na bokach */
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    z-index: 1;
    
    /* Czerwone ostre odcięcie. Promień mniejszy o 1px (19px), 
       aby idealnie odwzorować grubość ramki wewnątrz łuku */
    background: 
        radial-gradient(circle at 0 0, transparent 19px, var(--accent) 19px),
        radial-gradient(circle at 100% 0, transparent 19px, var(--accent) 19px),
        radial-gradient(circle at 0 100%, transparent 19px, var(--accent) 19px),
        radial-gradient(circle at 100% 100%, transparent 19px, var(--accent) 19px);
    background-position: top left, top right, bottom left, bottom right;
    background-size: 51% 51%;
    background-repeat: no-repeat;
}

/* 3. ZAWARTOŚĆ (Bez zmian, pilnuje wyświetlania nad czerwoną warstwą) */
.ticket-body {
    width: 90%;
    position: relative;
    z-index: 2; 
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    height: 150px;
    align-items: center;
    margin: auto;
    border-style: solid;
    border-color: #000000;
}

.ticket-body img {
    flex: 1.5; /* Zdjęcie zajmuje odpowiednio więcej miejsca */
    height: 100%;
    max-width: 65%;
    object-fit: cover;
    transition: transform 0.2s;
    margin-right: 5%;
    border-right-color: #000000;
    border-right-style: solid;
}
.ticket-wrapper:hover {
    cursor: pointer;
    transform: scale(1.02);
}

/* Odrywana część biletu (Kreska z kropek i krótki opis) */
.ticket-stub {
    width: 30%; /* Dostosowanie proporcji do mniejszych biletów */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 5px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    border-left: 3px dotted var(--accent); 
}


/* --- GALERIA ---*/
/* Siatka albumów */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Styl pojedynczego zdjęcia Instax (Folderu) */
.instax-folder {
    background: #fff;
    padding: 12px 12px 30px 12px; /* Grubsza dolna część */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
}

.instax-folder:hover {
    transform: rotate(-2deg) scale(1.03); /* Lekkie zawadiackie obrócenie */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.instax-cover {
    width: 100%;
    aspect-ratio: 1 / 1; /* Kwadratowe zdjęcie jak w Instaxie */
    object-fit: cover;
    filter: sepia(10%) contrast(105%); /* Delikatny filtr retro */
    background: #eee;
}

.instax-title {
    font-family: 'Poppins', sans-serif; /* Możesz zmienić na font odręczny */
    font-weight: 600;
    color: #333;
    margin-top: 15px;
    font-size: 14px;
    word-wrap: break-word;
}

/* Przyciski admina na Instaxie */
.admin-album-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}
.admin-mini-btn {
    background: rgba(255,255,255,0.9);
    border: none; padding: 5px 8px; border-radius: 4px; cursor: pointer; font-size: 12px;
}
.admin-mini-btn:hover { background: #e74c3c; color: white; }

/* Styl tła dla okna modalnego (overlay) */
#album-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Przyciemnienie tła strony */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999; /* Wysoki indeks, aby okno było nad wszystkim */
}

/* Karta z zawartością wewnątrz okna */
.album-preview-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto; /* Przewijanie, jeśli w albumie jest mnóstwo zdjęć */
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    animation: fadeInModal 0.3s ease;
}

/* Przycisk zamknięcia (X) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #333;
}

/* Siatka zdjęć wewnątrz otwartego albumu */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Animacja delikatnego pojawiania się */
@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- SEKCJA KONTAKT --- */
.contact-container { display: flex; gap: 30px; margin-top: 20px; }
.contact-info { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.contact-form { flex: 1.2; }

.info-item { display: flex; align-items: flex-start; gap: 15px; }
.info-item i { font-size: 20px; color: white; margin-top: 4px; }
.info-item a { color: white; text-decoration: none; font-weight: 600; transition: 0.2s; }
/* .info-item a:hover { color: var(--accent); } */
.info-item a:hover { opacity: 0.9; transform: translateY(3px); }


.social-links { display: flex; gap: 8px; margin-top: 8px; }
.social-links a { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; width: fit-content; text-shadow: none;}
.social-links a.fb { background-color: #1877f2; } 
.social-links a.ig { background-color: #e1306c; }
.social-links a.wa { background-color: #25D366; }
.social-links a.tt { background-color: #000000; }
.social-links a:hover { opacity: 0.9; transform: translateX(3px); }
.fa-share-alt {color: var(--accent) !important;}

.logo-area {
    width: 80px; height: 80px; background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 32px; box-shadow: 0 5px 15px rgba(254,207,239,0.5);
}
h1 { font-size: 24px; color: #2c3e50; margin-bottom: 8px; font-weight: 700; }
.subtitle { font-size: 14px; color: #7f8c8d; margin-bottom: 30px; }

/* Styl przycisków */
.btn {
    display: flex; align-items: center; text-decoration: none; color: white; 
    padding: 16px 20px; margin-bottom: 14px; border-radius: 16px; font-weight: 600; font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.btn i { font-size: 20px; width: 30px; text-align: left; }
.btn span { flex-grow: 1; text-align: center; margin-right: 30px; } /* Centrowanie tekstu mimo ikony */

/* Specyficzne kolory dla sekcji kontaktowej */
.btn-tel { background-color: #2980b9; }
.btn-mail { background-color: #16a085; }
.btn-maps { background-color: #e74c3c; }

/* FORMULARZ */
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; margin-top: 5px; }
.submit-btn { background: var(--accent); color: white; border: none; padding: 12px 25px; border-radius: 8px; font-weight: 600; cursor: pointer; width: 100%; transition: 0.2s; }
.submit-btn:hover { background-color: var(--primary); }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 2000; justify-content: center; align-items: center; user-select: none; }
.lightbox.active { display: flex; }
.lightbox-img { max-width: 85%; max-height: 85%; border-radius: 8px; animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-btn { position: absolute; background: rgba(255,255,255,0.1); border: none; color: white; font-size: 30px; padding: 15px 20px; cursor: pointer; border-radius: 50%; }
.lightbox-close { top: 20px; right: 20px; font-size: 35px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }

.photo-management-zone {
    position: relative;
    display: inline-block;
    width: 100%;
}

.managed-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.pricing-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.pricing-info { flex-grow: 1; }
.prices-title { font-weight: bold; font-size: 16px; color: #333; }
.pricing-cost { font-size: 18px; font-weight: 800; color: #2ecc71; margin-left: 20px; }
.pricing-actions { display: flex; gap: 8px; margin-left: 15px; }

/* Panel z przyciskami nakładany na zdjęcie */
.admin-photo-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.admin-photo-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    color: white;
}

.upload-btn { background: #2ecc71; }
.upload-btn:hover { background: #27ae60; }

.delete-btn { background: #e74c3c; }
.delete-btn:hover { background: #c0392b; }

/* ==========================================================================
   W PEŁNI ZRESPONSYWNY UKŁAD DLA TELEFONÓW (NAPRAWA BILETU I TEKSTU)
   ========================================================================== */
@media (max-width: 768px) {
    
    body {
        padding: 0px;
        border: none !important;
        background-color: var(--bg);
    }

    header { 
        padding: 10px, 15px; 
    }
    
    .menu-toggle { display: block; order: 1; }
    .header-right { order: 2; gap: 10px; }
    .weather-widget { display: none; }
    
    nav { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background-color: var(--primary); 
        padding: 20px; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    }
    nav.open { display: block; }
    .nav-links { flex-direction: column; gap: 15px; text-align: center; }

    .main-layout { 
        flex-direction: column; 
        padding: 0; 
        margin: 10px auto; 
        gap: 25px;
    }
    .content-area { width: 90%; margin: auto }
    .sidebar { min-width: 100%; width: 100%; }

    /* --- CO CAŁKOWICIE NAPRAWIA GŁÓWNY BILET (.page-section) --- */
    .page-section { 
        display: none; /* Trzymamy logikę przełączania stron */
        padding: 40px; 
        /* border-radius: 10px;
        box-sizing: border-box; */
        height: auto !important; /* Pozwalamy biletowi rosnąć w dół wraz z tekstem */
        
        /* 1. Na telefonie rezygnujemy ze skomplikowanego radial-gradient jako ramki, 
           ponieważ nie dopasowuje się do dynamicznej wysokości. Dajemy stabilny design biletu: */
        /* background: var(--panel-bg) !important; 
        border: 4px solid #000000 !important;  
        box-shadow: inset 0 0 0 8px var(--accent); */
    }

    .page-section.active { 
        display: block; 
    }
    
    /* 2. Całkowicie wyłączamy generowanie nakładek przed i po, 
       które na telefonie łamały tekst i tworzyły czerwone/czarne plamy */
    /* .page-section::before,
    .page-section::after { 
        display: none !important; 
        content: none !important;
    } */
    
    /* 3. Kluczowa linia: Usuwamy indywidualne białe tła dla pojedynczych liter i bloków.
       Tekst leży teraz bezpośrednio na białym tle całego kontenera .page-section */
    .page-section h2, 
    .page-section p, 
    .page-section img, 
    .page-section ul, 
    .page-section form, 
    .page-section .contact-container {
        background-color: transparent !important; /* Koniec z uciętymi białymi prostokątami! */
        background: transparent !important;
        position: relative;
        z-index: 5;
        margin-bottom: 12px;
    }

    /* Dopasowanie marginesów dla nagłówka i tekstu wewnątrz "nowego" biletu */
    .page-section h2 {
        font-size: 22px;
        line-height: 1.3;
        margin-top: 10px; /* Lekkie odsunięcie od czerwonego paska u góry */
    }
    
    .page-section p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* --- RESZTA UKŁADÓW ATRAKCJI --- */
    .grid-attractions {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        gap: 20px;
        background: transparent !important;
    }

    .ticket-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 25px;
    }

    .ticket-body {
        width: 100%;
        height: auto; 
        flex-direction: column; 
        align-items: stretch;
        margin: 0;
    }

    .ticket-body img { 
        max-width: 100%; 
        width: 100%;
        height: 160px; 
        border-right: none;
        border-bottom: 3px solid var(--accent); 
        margin-right: 0;
    }

    .ticket-stub { 
        width: 100%; 
        padding: 12px;
        font-size: 14px; 
        border-left: none;
        border-top: 3px dotted var(--accent); 
    }

    .contact-container { flex-direction: column; gap: 20px; }
    .contact-info { width: 90%; margin: auto }
    .lightbox-prev { left: 10px; } 
    .lightbox-next { right: 10px; }

    .sidebar-panel { width: 90%; margin: auto;}
}