/* Karavan Rezervace - Kalendář styly */

/* Mobilní wrapper fix */
@media (max-width: 768px) {
    .booking-box-mobile-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 999;
    }
    
    /* Přidat padding na konec stránky */
    body.page-template-default {
        padding-bottom: 450px !important;
    }
}

/* Desktop wrapper */
@media (min-width: 769px) {
    .booking-box-wrapper {
        position: sticky;
        top: 20px;
        max-width: 400px;
        margin-left: auto;
    }
    
    .booking-box-mobile-wrapper {
        display: none !important;
    }
}

/* Kalendář specifické styly */
.rezervace-container .calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.rezervace-container .calendar-table td {
    width: 14.28%;
    height: 45px;
    text-align: center;
    position: relative;
    padding: 2px;
    border: none;
    border-radius: 12px;
}

.rezervace-container .calendar-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
}

.rezervace-container .calendar-day:hover:not(.disabled):not(.occupied) {
    background: #e8e8e8;
    transform: scale(1.05);
}

.rezervace-container .calendar-day.today {
    font-weight: 600;
    box-shadow: 0 0 0 2px #D06526;
}

.rezervace-container .calendar-day.selected {
    background: #D06526 !important;
    color: white !important;
    font-weight: 600;
}

.rezervace-container .calendar-day.in-range {
    background: #f5ddd0;
    color: #333;
}

.rezervace-container .calendar-day.occupied {
    background: #fee2e2;
    color: #dc2626;
    cursor: not-allowed;
}

.rezervace-container .calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Navigační tlačítka */
.rezervace-container .prev-month,
.rezervace-container .next-month {
    background: none;
    border: none;
    font-size: 24px;
    color: #D06526;
    cursor: pointer;
    padding: 5px 15px;
    transition: all 0.2s;
}

.rezervace-container .prev-month:hover,
.rezervace-container .next-month:hover {
    transform: scale(1.2);
}

/* Formulářové prvky */
.rezervace-container input[type="text"],
.rezervace-container input[type="email"],
.rezervace-container input[type="tel"],
.rezervace-container select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
}

.rezervace-container input:focus,
.rezervace-container select:focus {
    outline: none;
    border-color: #D06526;
    box-shadow: 0 0 0 3px rgba(208, 101, 38, 0.1);
}

/* Tlačítka */
.rezervace-container button[type="submit"],
.rezervace-container .next-step-btn {
    background: #D06526;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rezervace-container button[type="submit"]:hover,
.rezervace-container .next-step-btn:hover {
    background: #b85a20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(208, 101, 38, 0.3);
}

/* Výsledek rezervace */
.rezervace-result > div {
    padding: 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
}

/* Oprava pro Tailwind reset */
.rezervace-container table tbody > tr:nth-child(odd) > td,
.rezervace-container table tbody > tr:nth-child(odd) > th {
    background-color: transparent !important;
}

.rezervace-container .calendar-body tr:hover {
    background-color: transparent !important;
}

.rezervace-container .calendar-table thead tr th {
    border: none;
    border-block-start: none !important;
}