/* ===================================
   ŁOWISKO POD DĘBAMI - STRONA GŁÓWNA
=================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #e8f5e9 0%, #f5f5f5 55%, #eeeeee 100%);
    color: #333;
    text-align: center;
}

/* ===================================
   LOGO I KONTENER
=================================== */
.logo-wrapper {
    background: linear-gradient(135deg, #f4faf4 0%, #e8f5e9 100%);
    padding: 25px 0;
    border-bottom: 2px solid #a5d6a7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#logo {
    width: 280px;
    max-width: 85%;
    height: auto;
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply;
}

.container {
    max-width: 1300px;
    margin: auto;
    padding: 20px 30px;
}

/* ===================================
   NAGŁÓWKI I TEKST
=================================== */
h2, h3 {
    color: #111;
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 30px;
    margin-top: 0;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-top: 25px;
}

p {
    font-size: 17px;
    line-height: 1.6;
}

/* ===================================
   ZIELONKAWE KONTENERY / KARTY
=================================== */
.priceBox,
.contact,
.status-box,
.reservation-box,
.map-box,
.stats-box {
    background: linear-gradient(135deg, #f4faf4 0%, #e8f5e9 100%);
    border-radius: 28px;
    padding: 35px 40px;
    margin-top: 30px;
    width: 100%;
    border: 2px solid #a5d6a7;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

/* ===================================
   CENNIK I KONTAKT (JEDNO POD DRUGIM)
=================================== */
.priceBox p {
    background: white;
    border-radius: 18px;
    padding: 14px;
    margin: 12px auto;
    max-width: 500px;
    font-weight: 600;
    box-shadow: 0 5px 12px rgba(0,0,0,.08);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-person {
    background: white;
    padding: 22px;
    border-radius: 22px;
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
    transition: .25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-person:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,.15);
}

.contact-name {
    font-size: 20px;
    font-weight: 800;
    color: #1b5e20;
}

.contact-phone {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.call-button {
    display: inline-block;
    background: linear-gradient(135deg, #1b5e20, #43a047);
    color: white;
    padding: 10px 22px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
    transition: .25s;
}

.call-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

hr {
    border: none;
    height: 2px;
    background: #c8e6c9;
    margin: 50px 0;
}

/* ===================================
   ZWIJANIE / ROZWIJANIE STATUSU
=================================== */
.toggle-button {
    background: transparent;
    color: #111;
    border: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Georgia", serif;
    font-size: 24px;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
}

.toggle-button:hover {
    transform: none;
    box-shadow: none;
    color: #1b5e20;
}

.status-content {
    margin-top: 25px;
    transition: all 0.3s ease-in-out;
}

.status-content.hidden {
    display: none;
}

/* ===================================
   FORMULARZE I WEJŚCIA
=================================== */
.status-box,
.client-form-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.client-form-inner {
    margin-top: 35px;
    width: 100%;
}

.client-form-inner input,
.status-box input {
    width: 100%;
    max-width: 500px;
    height: 52px;
    padding: 12px 20px;
    margin-bottom: 15px;
    border-radius: 16px;
    border: 1px solid #a5d6a7;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    background: #ffffff;
    color: #111;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.client-form-inner input:focus,
.status-box input:focus {
    border-color: #43a047;
    box-shadow: 0 0 8px rgba(67, 160, 71, 0.35);
}

.client-form-inner input::placeholder,
.status-box input::placeholder {
    color: #888888;
    font-size: 15px;
}

/* ===================================
   PRZYCISKI
=================================== */
button {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 18px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: .25s;
    -webkit-appearance: none;
    appearance: none;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

#reserveButton,
#checkReservationButton {
    width: 100%;
    max-width: 500px;
    margin-top: 10px;
}

/* ===================================
   KALENDARZ & REZERWACJA (WEWNĄTRZ KONTENERA)
=================================== */
.availability-calendar {
    margin-top: 20px;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-navigation button {
    width: 55px;
    height: 48px;
    padding: 0;
    border-radius: 15px;
}

#calendarHeader {
    color: #1b5e20;
    font-size: 26px;
    margin: 0;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.calendar-week div {
    background: #ffffff;
    padding: 12px;
    border-radius: 14px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#calendarDays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.calendar-day {
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    transition: .2s;
}

.calendar-day:hover {
    transform: scale(1.06);
}

.calendar-free {
    background: linear-gradient(135deg, #43a047, #81c784);
    color: white;
    box-shadow: 0 5px 12px rgba(0,0,0,.15);
}

.calendar-past {
    background: #bdbdbd;
    color: white;
    opacity: .55;
    cursor: not-allowed;
}

.calendar-selected {
    background: linear-gradient(135deg, #1565c0, #42a5f5) !important;
    color: white;
    box-shadow: 0 0 20px rgba(25, 118, 210, .45);
}

.calendar-range {
    background: linear-gradient(135deg, #90caf9, #bbdefb);
    color: #0d47a1;
}

.calendar-empty {
    background: transparent;
}

.calendar-blocked {
    background: black;
    color: white;
}

#selectedDates {
    margin: 25px 0;
    color: #111;
    font-family: "Georgia", serif;
    font-size: 20px;
    font-weight: 600;
}

/* ===================================
   STANOWISKA LIVE
=================================== */
#pegsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
}

.peg {
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    color: white;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    transition: .25s;
}

.peg:hover {
    transform: translateY(-4px);
}

.peg.free { background: linear-gradient(135deg, #43a047, #81c784); }
.peg.selected { background: linear-gradient(135deg, #1565c0, #42a5f5) !important; outline: 4px solid #90caf9; }
.peg.booked { background: linear-gradient(135deg, #c62828, #ef5350); }
.peg.pending { background: linear-gradient(135deg, #ffb300, #ffd54f); color: #5d4300; }
.peg.blocked { background: black; color: white; cursor: not-allowed; }

/* ===================================
   LEGENDA & KOMUNIKATY
=================================== */
.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.legend span {
    padding: 12px 22px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 5px 12px rgba(0,0,0,.12);
}

.legend .free { background: #43a047; color: white; }
.legend .pending { background: #ffc107; color: #5d4300; }
.legend .booked { background: #e53935; color: white; }
.legend .selected { background: #1976d2; color: white; }

.peg-message {
    min-height: 40px;
    margin: 20px auto;
    padding: 14px 24px;
    max-width: 700px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 17px;
    text-align: center;
    transition: .3s;
}

.peg-message.pending { background: #fff3cd; color: #856404; border-left: 7px solid #ffc107; }
.peg-message.error { background: #fdecea; color: #c62828; border-left: 7px solid #c62828; }
.peg-message.success { background: #e8f5e9; color: #2e7d32; border-left: 7px solid #43a047; }
.peg-message.info { background: #e3f2fd; color: #1565c0; border-left: 7px solid #1976d2; }

/* ===================================
   BANER FACEBOOKA & MAPA
=================================== */
.facebook-image-link {
    display: inline-block;
    margin: 15px 0;
    text-decoration: none !important;
    line-height: 0;
    transition: transform .2s ease, opacity .2s ease;
}

.facebook-banner-image {
    display: block;
    width: 250px;
    height: auto;
    border: 0;
}

.facebook-image-link:hover {
    transform: scale(1.04);
    opacity: .9;
}

.map-box {
    overflow: hidden;
}

#mapLink {
    display: inline-block;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    padding: 14px 25px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: bold;
}

/* ===================================
   STATYSTYKI
=================================== */
.stats-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.stat-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.stat-card span {
    font-size: 42px;
    font-weight: 800;
}

.free-stat { border-top: 8px solid #43a047; }
.pending-stat { border-top: 8px solid #ffc107; }
.booked-stat { border-top: 8px solid #e53935; }

/* ===================================
   FOOTER & POLITYKA PRYWATNOŚCI
=================================== */
.privacy-link {
    position: fixed;
    left: 15px;
    bottom: 10px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    z-index: 9999;
}

.privacy-link:hover {
    text-decoration: underline;
    color: #1b5e20;
}

/* ===================================
   RWD / MOBILNE
=================================== */
@media (max-width: 900px) {
    .container { padding: 15px; }
    .priceBox, .contact, .status-box, .reservation-box, .map-box, .stats-box { padding: 20px; }
}

@media (max-width: 600px) {
    body { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
    .container { padding: 10px; }
    .contact-grid { grid-template-columns: 1fr; }
    #calendarDays { gap: 6px; }
    .calendar-day { height: 42px; font-size: 14px; }
    .calendar-week div { font-size: 12px; padding: 8px 3px; }
    #pegsGrid { grid-template-columns: repeat(4, 1fr); gap: 9px; }
    .peg { height: 55px; font-size: 13px; }
    .stats-box { grid-template-columns: 1fr; }
    .facebook-banner-image { width: 180px; }
    .client-form-inner input, .status-box input, #reserveButton, #checkReservationButton { max-width: 100%; }
    .toggle-button { font-size: 20px; }
}
/* Zwymiarowane kontenery (poszerzone do 1050px z umiarkowanym odstępem wewnątrz) */
.priceBox,
.contact,
.status-box,
.reservation-box,
.map-box,
.stats-box {
    background: linear-gradient(135deg, #f4faf4 0%, #e8f5e9 100%);
    border-radius: 24px;
    padding: 25px 35px; /* Przyjemne, nie za duże i nie za małe odstępy wewnętrzne */
    margin: 25px auto 0 auto;
    max-width: 1050px; /* Poszerzona karta dla lepszej proporcji */
    width: 100%;
    border: 2px solid #a5d6a7;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
/* ===================================
   GŁÓWNE KONTENERY (PO STAREMU - WYRAŹNE)
=================================== */
.priceBox,
.contact {
    background: linear-gradient(135deg, #f4faf4 0%, #e8f5e9 100%);
    border-radius: 28px; /* Poprzednie, mocniejsze zaokrąglenie */
    padding: 35px 40px; /* Poprzednie większe odstępy */
    margin: 30px auto 0 auto;
    max-width: 1050px;
    width: 100%;
    border: 2px solid #a5d6a7; /* Poprzednia, grubsza ramka */
    box-shadow: 0 12px 30px rgba(0,0,0,.12); /* Poprzedni mocniejszy cień */
}

/* ===================================
   RZECZY W ŚRODKU (NOWE - MINIMALISTYCZNE)
=================================== */

/* Paski z cennikiem w środku */
.priceBox p {
    background: white;
    border-radius: 10px; /* Delikatne */
    padding: 12px 18px;
    margin: 10px auto;
    max-width: 500px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.04); /* Subtelna ramka w środku */
    box-shadow: 0 2px 6px rgba(0,0,0,0.03); /* Subtelny cień w środku */
}

/* Siatka kontaktowa */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Kafelki osób do kontaktu w środku */
.contact-person {
    background: white;
    padding: 18px;
    border-radius: 12px; /* Delikatne rogi w środku */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-person:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.contact-name {
    font-size: 20px;
    font-weight: 800;
    color: #1b5e20;
}

/* Numery telefonów w środku jako minimalistyczne pigułki */
.contact-phone {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    background: #f9fbf9;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Przyciski dzwonienia w środku */
.call-button {
    display: inline-block;
    background: linear-gradient(135deg, #1b5e20, #43a047);
    color: white;
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: .2s;
}

.call-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}
/* Kafelki osób do kontaktu - subtelnie zielone tło */
.contact-person {
    background: linear-gradient(135deg, #f4faf4 0%, #e8f5e9 100%); /* Subtelny, jasny odcień zieleni */
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #c8e6c9; /* Dopasowana delikatna zielona ramka */
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-person:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
/* Paski z cennikiem - subtelnie zielone tło */
.priceBox p {
    background: linear-gradient(135deg, #f4faf4 0%, #e8f5e9 100%); /* Ten sam subtelny odcień zieleni */
    border-radius: 10px;
    padding: 12px 18px;
    margin: 10px auto;
    max-width: 500px;
    font-weight: 600;
    border: 1px solid #c8e6c9; /* Dopasowana delikatna zielona ramka */
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
/* ==========================================
   STYLE RYSOWANE DLA EKRANÓW MOBILNYCH (TELEFONY)
   ========================================== */
@media (max-width: 600px) {
    /* Mniejsza czcionka opisu doby na telefonach */
    .priceBox .price-note {
        font-size: 11px;
        line-height: 1.3;
        padding: 0 5px;
        white-space: normal; /* Pozwala na zawinięcie w razie potrzeby na małych ekranach */
    }

    /* Dostosowanie wysokości/dopasowania głównego ramki w cenniku */
    .priceBox p {
        padding: 10px 8px;
        font-size: 14px;
    }
}