/* =================================== */
/* Strona Rezerwacji          */
/* =================================== */

#booking {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.booking-header {
    text-align: center;
    margin-bottom: 2rem;
}

.booking-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.booking-header p {
    color: #6b7280;
    max-width: 720px;
    margin: 0 auto;
}

.booking-feedback {
    max-width: 960px;
    margin: 0 auto 1.5rem;
    display: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
}

.booking-feedback.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
}

.booking-feedback.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.booking-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}
.footer-links {
    margin-top: 1rem; /* Odstęp od ikonek */
    text-align: center;
}

.legal-link {
    color: rgba(255, 255, 255, 0.8); /* Jasny kolor, lekko przezroczysty */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.legal-link:hover {
    color: #ffffff; /* Biały po najechaniu */
    text-decoration: underline;
}
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.form-card h2 {
    margin-bottom: 1rem;
}

.form-card h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.info-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
}

.info-card h2 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.info-card .muted {
    color: #6b7280;
    margin-bottom: 1rem;
}

.info-card .small {
    font-size: 0.95rem;
}

.amenities-list {
    margin: 0.5rem 0 1rem 1rem;
    padding-left: 1rem;
    list-style: disc;
}

.amenities-list li {
    margin: 0.4rem 0;
}

hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1rem 0;
}

.grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field label {
    font-weight: 600;
    color: #374151;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(68, 111, 145, 0.15);
}

.field.optional {
    grid-column: span 1;
}

.input-with-icon {
    position: relative;
}

.input-with-icon::after {
    content: "\1F4C5";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    pointer-events: none;
}

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

.actions .button {
    width: 100%;
    max-width: 420px;
}

.button.primary {
    background: var(--accent-color);
}

.button.primary:hover {
    background: var(--secondary-color);
}

/* Responsywność */
@media (max-width: 992px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .grid.two {
        grid-template-columns: 1fr;
    }

    .booking-header h1 {
        font-size: 2.25rem;
    }
}

/* --- Style dla kalendarza "Pół na Pół" --- */

:root {
    --booked-color: #ffeded;
    /* Jasnoczerwone tło */
    --booked-text: #d9534f;
    /* Czerwony tekst */
    --available-color: #ffffff;
    /* Biały */
}

/* Bazowy styl dla wszystkich zajętych dni */
.flatpickr-day.booked {
    color: var(--booked-text) !important;
    border-color: transparent !important;
    font-weight: bold !important;
}

/* ŚRODEK REZERWACJI: Cały czerwony */
.flatpickr-day.booked-middle {
    background: var(--booked-color) !important;
}

/* POCZĄTEK REZERWACJI: Góra biała, dół czerwony */
.flatpickr-day.booked-start {
    background: linear-gradient(to bottom right, var(--available-color) 50%, var(--booked-color) 50%) !important;
}

/* KONIEC REZERWACJI: Góra czerwona, dół biały */
.flatpickr-day.booked-end {
    background: linear-gradient(to bottom right, var(--booked-color) 50%, var(--available-color) 50%) !important;
}

/* Efekt po najechaniu dla interaktywnych dni końcowych */
.flatpickr-day.booked-start:hover,
.flatpickr-day.booked-end:hover {
    border: 1px solid var(--booked-text) !important;
}

/* Wyłączone dni (np. środek cudzej rezerwacji) */
.flatpickr-day.booked.flatpickr-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Naprawa tła: usuwamy ogólne tło 'booked', żeby nie psuło gradientów */
.flatpickr-day.booked:not(.booked-middle):not(.booked-start):not(.booked-end) {
    background: none !important;
}