/* CSS Simplifié pour Reservation120 */
.reservation120-calendar-container {
    max-width: 800px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media screen and (min-width: 1200px) {
    .reservation120-calendar-container {
        max-width: 1200px;
        margin: auto !important;
    }
    .formidable-form-container {
        width: 1200px;
        margin: auto !important;
    }
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.reservation120-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.day-header {
    background: #007cba;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.calendar-day {
    min-height: 60px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: #f0f8ff;
}

.calendar-day.other-month {
    opacity: 0.6;
    font-style: italic;
}

.calendar-day.other-month:hover:not(.past-date):not(.unavailable) {
    opacity: 0.8;
    background: #e8f4ff;
    cursor: pointer;
}

.calendar-day.past-date {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f5f5f5;
}

.calendar-day.unavailable {
    background: #ff5722 !important;
    color: white !important;
    cursor: not-allowed;
    opacity: 0.9;
}

.calendar-day.unavailable .day-price {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Style spécifique pour les dates réservées */
.calendar-day.unavailable:hover {
    background: #d84315 !important;
}

.calendar-day.unavailable::after {
    content: "Réservé";
    position: absolute;
    font-size: 8px;
    margin-top: 15px;
    opacity: 0.8;
}

/* Styles pour les dates partiellement disponibles */
.calendar-day.partial-checkin {
    background: linear-gradient(to right, #4caf50 0%, #4caf50 45%, #ff9800 45%, #ff9800 100%) !important;
    color: white !important;
    position: relative;
}

.calendar-day.partial-checkin::after {
    content: "Check-in 16h";
    position: absolute;
    font-size: 8px;
    margin-top: 15px;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 3px;
    border-radius: 2px;
}

.calendar-day.partial-checkout {
    background: linear-gradient(to right, #ff9800 0%, #ff9800 45%, #4caf50 45%, #4caf50 100%) !important;
    color: white !important;
    position: relative;
}

.calendar-day.partial-checkout::after {
    content: "Check-out 11h";
    position: absolute;
    font-size: 8px;
    margin-top: 15px;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 3px;
    border-radius: 2px;
}

.calendar-day.partial-checkin:hover,
.calendar-day.partial-checkout:hover {
    opacity: 0.8;
    cursor: pointer;
}

.calendar-day.partial-checkin .day-price,
.calendar-day.partial-checkout .day-price {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Styles pour les dates disponibles */
.calendar-day.available {
    background: #4caf50 !important;
    color: white !important;
    cursor: pointer;
    opacity: 0.9;
}

.calendar-day.available:hover {
    background: #388e3c !important;
}

.calendar-day.available .day-price {
    color: rgba(255, 255, 255, 0.8) !important;
}

.calendar-day.night-stay {
    background: #007cba !important;
    color: white !important;
}

.calendar-day.night-stay .day-price {
    color: rgba(255, 255, 255, 0.8) !important;
}



.day-content {
    text-align: center;
    width: 100%;
    padding: 5px;
}

.day-number {
    font-weight: bold;
    font-size: 16px;
}

.day-price {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-item:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-item.available:before { background: #4caf50; }
.legend-item.unavailable:before { background: #ff5722; }
.legend-item.night-stay:before { background: #007cba; }
.legend-item.partial-checkin:before { background: linear-gradient(to right, #4caf50 0%, #4caf50 45%, #ff9800 45%, #ff9800 100%); }
.legend-item.partial-checkout:before { background: linear-gradient(to right, #ff9800 0%, #ff9800 45%, #4caf50 45%, #4caf50 100%); }

.selection-help {
    background: #f0f8ff;
    border: 1px solid #007cba;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    font-size: 13px;
}

.selection-help p {
    margin: 5px 0;
}

.booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.booking-summary h3 {
    margin-top: 0;
    color: #007cba;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.button {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.button:hover {
    background: #005a87;
}

.button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.button-primary {
    background: #007cba;
}

.button-secondary {
    background: #666;
}

.formidable-form-container {
    background: #fff;
    padding: 20px;
    border: 2px solid #007cba;
    border-radius: 8px;
    margin-top: 20px;
}

.formidable-form-container h3 {
    color: #007cba;
    margin-top: 0;
}

.reservation120-loading-indicator {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

[v-cloak] {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .reservation120-calendar {
        font-size: 12px;
    }
    
    .calendar-day {
        min-height: 50px;
    }
    
    .calendar-legend {
        justify-content: center;
    }
}