/**
 * Estilos Frontend - Nomads Booking Integration
 */

/* Contenedor principal del calendario */
.nomads-booking-calendar-section {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nomads-calendar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.nomads-calendar-header h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.nomads-price-per-night,
.nomads-price-fixed {
    margin: 0;
    font-size: 18px;
}

.nomads-price-per-night strong,
.nomads-price-fixed strong {
    color: #6B7B3C;
    font-size: 24px;
}

.nomads-price-label {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
}

/* Contenedor del calendario */
.nomads-calendar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Flatpickr personalizado */
.nomads-datepicker-wrapper {
    width: 100%;
}

.nomads-flatpickr-custom {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nomads-flatpickr-custom .flatpickr-day.selected,
.nomads-flatpickr-custom .flatpickr-day.startRange,
.nomads-flatpickr-custom .flatpickr-day.endRange {
    background: #6B7B3C;
    border-color: #6B7B3C;
    color: #fff;
}

.nomads-flatpickr-custom .flatpickr-day.inRange {
    background: #f0f7f0;
    border-color: #6B7B3C;
    color: #333;
}

.nomads-flatpickr-custom .flatpickr-day.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

/* Resumen de reserva */
.nomads-booking-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.nomads-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nomads-summary-row:last-child {
    border-bottom: none;
}

.nomads-summary-row.nomads-nights {
    font-weight: 600;
}

.nomads-summary-row.nomads-total {
    font-size: 18px;
    font-weight: 700;
    color: #6B7B3C;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #6B7B3C;
}

.nomads-label {
    color: #666;
}

.nomads-value {
    color: #333;
    font-weight: 600;
}

.nomads-total-price {
    color: #6B7B3C;
    font-size: 24px;
}

/* Botón de reserva */
.nomads-booking-actions {
    margin-top: 20px;
}

.nomads-reserve-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    background: #6B7B3C;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nomads-reserve-btn:hover:not(:disabled) {
    background: #5a6530;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 123, 60, 0.3);
}

.nomads-reserve-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.nomads-reserve-btn.unavailable {
    background: #d32f2f;
}

/* Experiencias disponibles */
.nomads-available-experiences {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.nomads-available-experiences h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.nomads-experiences-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.nomads-experiences-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nomads-experience-item {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.nomads-experience-item:hover {
    background: #f0f7f0;
    border-color: #6B7B3C;
}

.nomads-experience-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.nomads-experience-name {
    flex: 1;
    font-weight: 500;
}

.nomads-experience-price {
    color: #6B7B3C;
    font-weight: 600;
}

/* Calendario de experiencias */
.nomads-experience-booking .nomads-date-section,
.nomads-experience-booking .nomads-time-section {
    margin-bottom: 20px;
}

.nomads-date-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.nomads-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.nomads-time-slot {
    padding: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nomads-time-slot:hover {
    border-color: #6B7B3C;
    background: #f0f7f0;
}

.nomads-time-slot.selected {
    background: #6B7B3C;
    color: #fff;
    border-color: #6B7B3C;
}

.nomads-time-slot:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .nomads-booking-calendar-section {
        padding: 15px;
    }
    
    .nomads-calendar-header h3 {
        font-size: 18px;
    }
    
    .nomads-time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }
    
    .nomads-summary-row {
        font-size: 14px;
    }
    
    .nomads-total-price {
        font-size: 20px;
    }
}

